From 30a6019fd81fd7cf714725eafeede96c5260936b Mon Sep 17 00:00:00 2001 From: Tushar Sadhwani Date: Tue, 12 Oct 2021 12:54:49 +0530 Subject: [PATCH] remove unnecessary `__name__` check Also uses the better exit syntax --- pre_commit/__main__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pre_commit/__main__.py b/pre_commit/__main__.py index 54140687..82c5ecd5 100644 --- a/pre_commit/__main__.py +++ b/pre_commit/__main__.py @@ -1,5 +1,4 @@ from pre_commit.main import main -if __name__ == '__main__': - exit(main()) +raise SystemExit(main())