Skip to content

Commit

Permalink
Update verify-spdx-headers
Browse files Browse the repository at this point in the history
Adding a check for emtpy files and skipping.

Signed-off-by: Sterling Taylor <[email protected]>

Remove whitespace.
  • Loading branch information
staylorTT authored and github-actions[bot] committed Aug 8, 2024
1 parent c21b82a commit a5f49a6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion verify-spdx-headers
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,14 @@ class Index:

for file in files:
path = os.path.join(root, file)

# If the file is empty skip.
if os.path.getsize(path) == 0:
continue

# If the file is a symlink, don't bother
if os.path.islink( path ):
continue

# Find the language of the file.
language = self.language(path)
if language is None:
Expand Down

0 comments on commit a5f49a6

Please sign in to comment.