Skip to content

Commit

Permalink
Fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
kostrykin committed Mar 13, 2024
1 parent 0210711 commit 209d15f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/galaxy/tool_util/verify/asserts/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,15 +221,15 @@ def cast_label(label):

# Apply filtering due to `labels` (keep only those).
if labels is None:
labels = list()
labels = []
if isinstance(labels, str):
labels = [cast_label(label) for label in labels.split(",") if len(label) > 0]
if len(labels) > 0:
present_labels = [label for label in present_labels if label in labels]

# Apply filtering due to `exclude_labels`.
if exclude_labels is None:
exclude_labels = list()
exclude_labels = []
if isinstance(exclude_labels, str):
exclude_labels = [cast_label(label) for label in exclude_labels.split(",") if len(label) > 0]
present_labels = [label for label in present_labels if label not in exclude_labels]
Expand Down

0 comments on commit 209d15f

Please sign in to comment.