From ade743b67f15e7f8a2c49352c9b7462892859538 Mon Sep 17 00:00:00 2001 From: Nicolas Schweitzer Date: Wed, 9 Oct 2024 08:31:04 +0200 Subject: [PATCH] fix(linter): Return empty object in early exit (#29939) --- tasks/linter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/linter.py b/tasks/linter.py index c5f61ae7690a6..080175fdfbf5c 100644 --- a/tasks/linter.py +++ b/tasks/linter.py @@ -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]