Skip to content

Commit d4edad7

Browse files
committed
lint fixes
1 parent 3d2c2b7 commit d4edad7

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

csharp/src/Drivers/Databricks/Auth/OAuthClientCredentialsService.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ private class TokenInfo
4343
{
4444
public string? AccessToken { get; set; }
4545
public DateTime ExpiresAt { get; set; }
46-
46+
4747
public bool IsExpired => DateTime.UtcNow >= ExpiresAt;
48-
48+
4949
// Add buffer time to refresh token before actual expiration
5050
public bool NeedsRefresh => DateTime.UtcNow >= ExpiresAt.AddMinutes(-5);
5151
}
@@ -112,7 +112,7 @@ private async Task<string> RefreshTokenInternalAsync(CancellationToken cancellat
112112
}
113113

114114
string content = await response.Content.ReadAsStringAsync();
115-
115+
116116
try
117117
{
118118
_cachedToken = ParseTokenResponse(content);
@@ -149,7 +149,7 @@ private HttpRequestMessage CreateTokenRequest()
149149
private TokenInfo ParseTokenResponse(string content)
150150
{
151151
using var jsonDoc = JsonDocument.Parse(content);
152-
152+
153153
if (!jsonDoc.RootElement.TryGetProperty("access_token", out var accessTokenElement))
154154
{
155155
throw new DatabricksException("OAuth response did not contain an access_token");
@@ -228,4 +228,4 @@ public void Dispose()
228228
}
229229

230230
}
231-
}
231+
}

csharp/test/Drivers/Databricks/Auth/OAuthClientCredentialsServiceTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,4 @@ void IDisposable.Dispose()
6262
base.Dispose();
6363
}
6464
}
65-
}
65+
}

0 commit comments

Comments
 (0)