remove always false (#561)

* remove always false

* remove unsupport format arg
This commit is contained in:
Boshi Lian
2021-02-17 08:25:09 -08:00
committed by GitHub
parent 6acdac256d
commit 0ccf01b7bb
2 changed files with 2 additions and 2 deletions

View File

@@ -28,7 +28,7 @@ jobs:
- name: Check Format
# don't check formatting on Windows b/c of CRLF issues.
if: matrix.os != 'windows-latest'
run: dotnet format --check --dry-run --exclude ./src/KubernetesClient/generated/
run: dotnet format --check --exclude ./src/KubernetesClient/generated/
- name: Build
run: dotnet build --configuration Release
- name: Test

View File

@@ -25,7 +25,7 @@ namespace k8s.Authentication
public async Task<AuthenticationHeaderValue> GetAuthenticationHeaderAsync(CancellationToken cancellationToken)
{
if (_expiry == null || _accessToken == null || DateTime.UtcNow.AddSeconds(30) > _expiry)
if (_accessToken == null || DateTime.UtcNow.AddSeconds(30) > _expiry)
{
await RefreshToken().ConfigureAwait(false);
}