Skip to content

Commit

Permalink
fix(linter): Return empty object in early exit
Browse files Browse the repository at this point in the history
  • Loading branch information
chouetz committed Oct 8, 2024
1 parent 9c9fdc7 commit 2041563
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/linter.py
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ def get_gitlab_ci_lintable_jobs(diff_file, config_file, only_names=False):

if not jobs:
print(f"{color_message('Info', Color.BLUE)}: No added / modified jobs, skipping lint")
return
return [], {}

if only_names:
jobs = [job for job, _ in jobs]
Expand Down

0 comments on commit 2041563

Please sign in to comment.