Skip to content

Commit 8e947e9

Browse files
committed
FIX: Exit code on 0 found
1 parent c4b1983 commit 8e947e9

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
repos:
12
- repo: git://github.com/pre-commit/pre-commit-hooks
2-
sha: v0.7.1
3+
rev: v1.3.0
34
hooks:
45
- id: end-of-file-fixer
56
- id: trailing-whitespace

terraform_unused_vars/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def main():
115115
if found > 0:
116116
sys.exit(1)
117117
else:
118-
sys.exit(1)
118+
sys.exit(0)
119119

120120

121121
if __name__ == '__main__':

0 commit comments

Comments
 (0)