Skip to content

Commit

Permalink
fix(linter): Return empty object in early exit (#29939)
Browse files Browse the repository at this point in the history
  • Loading branch information
chouetz authored Oct 9, 2024
1 parent 16abca8 commit ade743b
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 ade743b

Please sign in to comment.