Skip to content

Commit 4f03ef1

Browse files
committed
Remove redundant values
1 parent 849d8ca commit 4f03ef1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

reportportal_client/helpers/common_helpers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -497,9 +497,9 @@ def to_bool(value: Optional[Any]) -> Optional[bool]:
497497
"""
498498
if value is None:
499499
return None
500-
if value in {"TRUE", "True", "true", "1", "Y", "y", 1, True}:
500+
if value in {"TRUE", "True", "true", "1", "Y", "y", True}:
501501
return True
502-
if value in {"FALSE", "False", "false", "0", "N", "n", 0, False}:
502+
if value in {"FALSE", "False", "false", "0", "N", "n", False}:
503503
return False
504504
raise ValueError(f"Invalid boolean value {value}.")
505505

0 commit comments

Comments
 (0)