Skip to content

Commit

Permalink
Incorporated PR comments
Browse files Browse the repository at this point in the history
Fixed unnecessary bool() cast

Signed-off-by: Kartik Ganesh <[email protected]>
  • Loading branch information
kartg committed Jun 28, 2023
1 parent b392d4a commit cc3f56e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index_configuration_tool/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
# or inside a nested dict (for source). The default value is False.
def is_insecure(config: dict) -> bool:
if INSECURE_KEY in config:
return bool(config[INSECURE_KEY])
return config[INSECURE_KEY]
elif CONNECTION_KEY in config and INSECURE_KEY in config[CONNECTION_KEY]:
return bool(config[CONNECTION_KEY][INSECURE_KEY])
return config[CONNECTION_KEY][INSECURE_KEY]
return False


Expand Down

0 comments on commit cc3f56e

Please sign in to comment.