Skip to content

Commit 9d37096

Browse files
Remove pointless comments
1 parent 5907eb6 commit 9d37096

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

databricks/sdk/config.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,10 +208,8 @@ def oauth_token(self) -> Token:
208208
the existing provider. Otherwise, it raises a ValueError indicating that
209209
OAuth tokens are not available for the current authentication method.
210210
"""
211-
# Check if the current header factory is an OAuthCredentialsProvider
212211
if isinstance(self._header_factory, OAuthCredentialsProvider):
213212
return self._header_factory.oauth_token()
214-
# Raise an error for non-OAuth authentication methods
215213
raise ValueError(
216214
f"OAuth tokens are not available for {self.auth_type} authentication. "
217215
f"Use an OAuth-based authentication method to access OAuth tokens."

0 commit comments

Comments
 (0)