Skip to content

Commit

Permalink
fix(work.py): fixed condition statement for pipeline reformatting
Browse files Browse the repository at this point in the history
  • Loading branch information
odarotto committed Apr 27, 2023
1 parent 02ddd94 commit 067db77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chime_frb_api/workflow/work.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ def post_init(cls, values: Dict[str, Any]):
reformatted = True
break

if (" " or "_") in values["pipeline"]:
if any(char in {" ", "_"} for char in values["pipeline"]):
values["pipeline"] = values["pipeline"].replace(" ", "-")
values["pipeline"] = values["pipeline"].replace("_", "-")
reformatted = True
Expand Down

0 comments on commit 067db77

Please sign in to comment.