Skip to content

Commit

Permalink
Reformat conda_smithy/linter/utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mgorny committed Dec 26, 2024
1 parent 2041df2 commit f25fb2b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion conda_smithy/linter/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,9 @@ def flatten_v1_if_else(requirements: list[str | dict]) -> list[str]:
for req in requirements:
if isinstance(req, dict):
flattened_requirements.extend(flatten_v1_if_else(req["then"]))
flattened_requirements.extend(flatten_v1_if_else(req.get("else") or []))
flattened_requirements.extend(
flatten_v1_if_else(req.get("else") or [])
)
else:
flattened_requirements.append(req)
return flattened_requirements

0 comments on commit f25fb2b

Please sign in to comment.