Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Update verify-spdx-headers to move get size after symlinks #23

Merged
merged 1 commit into from
Aug 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions verify-spdx-headers
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,12 @@ 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
# If the file is empty skip.
if os.path.getsize(path) == 0:
continue
# Find the language of the file.
language = self.language(path)
if language is None:
Expand Down
Loading