Skip to content

Commit

Permalink
Remove redundant condition
Browse files Browse the repository at this point in the history
  • Loading branch information
HardNorth committed Dec 11, 2024
1 parent 60dfd20 commit 6376b30
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions reportportal_client/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -511,8 +511,6 @@ def match_pattern(pattern: Optional[re.Pattern], line: Optional[str]) -> bool:
:param line: line to check
:return: True if the line matches the pattern with asterisks, False otherwise
"""
if pattern is None and line is None:
return True
if pattern is None:
return True
if line is None:
Expand Down

0 comments on commit 6376b30

Please sign in to comment.