Skip to content

Commit

Permalink
Linter
Browse files Browse the repository at this point in the history
  • Loading branch information
Smartappli authored Jun 30, 2024
1 parent 111d513 commit ee895dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/syft/src/syft/util/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,7 @@ def autocache(
def str_to_bool(bool_str: str | None) -> bool:
result = False
bool_str = str(bool_str).lower()
if bool_str == "true" or bool_str == "1":
if bool_str in ("true", "1"):
result = True
return result

Expand Down

0 comments on commit ee895dd

Please sign in to comment.