Skip to content

Commit

Permalink
FIX: Exit code on 0 found
Browse files Browse the repository at this point in the history
  • Loading branch information
pecigonzalo committed Jun 27, 2018
1 parent c4b1983 commit 8e947e9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
repos:
- repo: git://github.com/pre-commit/pre-commit-hooks
sha: v0.7.1
rev: v1.3.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
Expand Down
2 changes: 1 addition & 1 deletion terraform_unused_vars/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def main():
if found > 0:
sys.exit(1)
else:
sys.exit(1)
sys.exit(0)


if __name__ == '__main__':
Expand Down

0 comments on commit 8e947e9

Please sign in to comment.