Skip to content

Commit

Permalink
Drop duplicated check for empty list of files
Browse files Browse the repository at this point in the history
We need to continue to this code:

  if not files and not self.full_project_scan:
      return

Fixes: fedora-copr/vcs-diff-lint-action#33
  • Loading branch information
praiskup committed Sep 28, 2024
1 parent 6557c71 commit 51bd21d
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions vcs-diff-lint
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand Down

0 comments on commit 51bd21d

Please sign in to comment.