remove always false (#561)
* remove always false * remove unsupport format arg
This commit is contained in:
2
.github/workflows/buildtest.yaml
vendored
2
.github/workflows/buildtest.yaml
vendored
@@ -28,7 +28,7 @@ jobs:
|
|||||||
- name: Check Format
|
- name: Check Format
|
||||||
# don't check formatting on Windows b/c of CRLF issues.
|
# don't check formatting on Windows b/c of CRLF issues.
|
||||||
if: matrix.os != 'windows-latest'
|
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
|
- name: Build
|
||||||
run: dotnet build --configuration Release
|
run: dotnet build --configuration Release
|
||||||
- name: Test
|
- name: Test
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ namespace k8s.Authentication
|
|||||||
|
|
||||||
public async Task<AuthenticationHeaderValue> GetAuthenticationHeaderAsync(CancellationToken cancellationToken)
|
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);
|
await RefreshToken().ConfigureAwait(false);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user