Skip to content

Commit

Permalink
Fix retrun None
Browse files Browse the repository at this point in the history
  • Loading branch information
yaroliakh committed Nov 22, 2024
1 parent eb81d09 commit 03fc110
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions paasta_tools/cli/cmds/logs.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,7 @@ def paasta_log_line_passes_filter(
timestamp = isodate.parse_datetime(parsed_line.get("timestamp"))
if check_timestamp_in_range(timestamp, start_time, end_time):
return True
else:
return False
return False


def paasta_app_output_passes_filter(
Expand Down Expand Up @@ -344,8 +343,7 @@ def paasta_app_output_passes_filter(
return False
if check_timestamp_in_range(timestamp, start_time, end_time):
return True
else:
return False
return False


def extract_utc_timestamp_from_log_line(line: str) -> datetime.datetime:
Expand Down

0 comments on commit 03fc110

Please sign in to comment.