Skip to content

Commit a458b6c

Browse files
committed
fix: simplify true claims
1 parent a8ba449 commit a458b6c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/securityanalysistoolproject/core/dbclient.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -697,9 +697,7 @@ def http_req(
697697
full_endpoint = f"{self._url}/api/{version}{endpoint}"
698698

699699
LOGGR.debug(f"http type endpoint -> {http_type}: {full_endpoint}")
700-
is_paginated = (
701-
True if SatDBClient.ispaginatedCall(full_endpoint) == True else False
702-
)
700+
is_paginated = SatDBClient.ispaginatedCall(full_endpoint)
703701
respageslst = list(
704702
self.get_paginated(
705703
full_endpoint, http_type, json_params, files_json, is_paginated
@@ -993,7 +991,7 @@ def getAWSTokenwithOAuth(self, baccount, client_id, client_secret):
993991
oidc_token = {"User-Agent": "databricks-sat/0.1.0"}
994992
json_params = {"grant_type": "client_credentials", "scope": "all-apis"}
995993

996-
if baccount is True:
994+
if baccount:
997995
full_endpoint = f"{self._ACCTURL}/oidc/accounts/{self._account_id}/v1/token" # url for accounts api
998996
else: # workspace
999997
full_endpoint = f"{self._raw_url}/oidc/v1/token"

0 commit comments

Comments
 (0)