From 204156337fe96fa7c875b2fac85936ddd6316a28 Mon Sep 17 00:00:00 2001 From: Nicolas Schweitzer Date: Tue, 8 Oct 2024 15:29:41 +0200 Subject: [PATCH] fix(linter): Return empty object in early exit --- 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]