Skip to content

Commit

Permalink
Fix empty list check
Browse files Browse the repository at this point in the history
  • Loading branch information
leouieda committed Mar 1, 2024
1 parent 6570a44 commit b0221cd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions burocrata/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,8 @@ def main(extension, check, verbose, directory):
if gitignore.match_file(path):
continue
amount += 1
with open(path) as file:
source_code = path.read_text().split("\n")
if source_code:
source_code = path.read_text().split("\n")
if not source_code:
missing_notice.append(path)
else:
for notice_line, file_line in zip(notice, source_code):
Expand Down

0 comments on commit b0221cd

Please sign in to comment.