From 51bd21da78a93f926884baad5dc72fa223d7303f Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Sat, 28 Sep 2024 16:09:42 +0200 Subject: [PATCH] Drop duplicated check for empty list of files We need to continue to this code: if not files and not self.full_project_scan: return Fixes: https://github.com/fedora-copr/vcs-diff-lint-action/issues/33 --- vcs-diff-lint | 4 ---- 1 file changed, 4 deletions(-) diff --git a/vcs-diff-lint b/vcs-diff-lint index 07b0bcd..920002f 100755 --- a/vcs-diff-lint +++ b/vcs-diff-lint @@ -111,13 +111,9 @@ class _Linter: def lint(self, projectdir, files, logfd): """ run the linter """ - if not files: - return - abs_projectdir = os.path.join(self.gitroot, projectdir) oldcwd = os.getcwd() - try: os.chdir(abs_projectdir) sha1_cmd = ['git', 'rev-parse', '--short', 'HEAD']