mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-04-15 18:11:48 +04:00
remove unnecessary __name__ check
Also uses the better exit syntax
This commit is contained in:
parent
2ac26e221c
commit
30a6019fd8
1 changed files with 1 additions and 2 deletions
|
|
@ -1,5 +1,4 @@
|
||||||
from pre_commit.main import main
|
from pre_commit.main import main
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
raise SystemExit(main())
|
||||||
exit(main())
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue