Skip to content

Commit 0547cc9

Browse files
author
Piotr Kaczyński
committed
Changes from review
1 parent 2fb3539 commit 0547cc9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/sasctl/core.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -740,11 +740,11 @@ def get_auth(
740740
"""
741741

742742
# If explicit username & password were provided, use them.
743-
if username is not None and password is not None:
743+
if username and password:
744744
return self.get_oauth_token(
745745
username, password
746746
)
747-
elif client_id is not None and client_secret is not None:
747+
if client_id is not None and client_secret is not None:
748748
return self.get_oauth_token(
749749
client_id=client_id,
750750
client_secret=client_secret
@@ -782,7 +782,7 @@ def get_oauth_token(
782782
client_secret=None,
783783
):
784784
"""Request an OAuth2 access token using either a username & password,
785-
client_id and client_secret or an auth token.
785+
client_id and client_secret, or an auth token.
786786
787787
Parameters
788788
----------

0 commit comments

Comments
 (0)