diff --git a/.github/workflows/buildtest.yaml b/.github/workflows/buildtest.yaml index f98506a..34a68cf 100644 --- a/.github/workflows/buildtest.yaml +++ b/.github/workflows/buildtest.yaml @@ -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 diff --git a/src/KubernetesClient/Authentication/OidcTokenProvider.cs b/src/KubernetesClient/Authentication/OidcTokenProvider.cs index 4301fd0..597c26d 100644 --- a/src/KubernetesClient/Authentication/OidcTokenProvider.cs +++ b/src/KubernetesClient/Authentication/OidcTokenProvider.cs @@ -25,7 +25,7 @@ namespace k8s.Authentication public async Task 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); }