Skip to content

Commit

Permalink
Fix the return code
Browse files Browse the repository at this point in the history
  • Loading branch information
vmarkovtsev committed Jun 7, 2021
1 parent 400ba27 commit d2b5366
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def main():
for file in sorted(files):
success &= scan_file(file, comment, regexp)
print(f"Scanned {scanned} files.")
return int(success)
return int(not success)


if __name__ == "__main__":
Expand Down

0 comments on commit d2b5366

Please sign in to comment.