Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
malmans2 committed Aug 11, 2023
1 parent 42bd693 commit ae4c773
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion c3s_eqc_automatic_quality_control/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,9 @@ def update_request_date(


def ensure_list(obj: Any) -> list[Any]:
return list(obj) if isinstance(obj, list | tuple | set | range) else [obj]
if isinstance(obj, list | tuple | set | range):
return list(obj)
return [obj]


def check_non_empty_date(request: dict[str, Any]) -> bool:
Expand Down

0 comments on commit ae4c773

Please sign in to comment.