diff --git a/.githooks/pre-commit b/.githooks/pre-commit index 0efdcb17..d48900c5 100755 --- a/.githooks/pre-commit +++ b/.githooks/pre-commit @@ -15,13 +15,10 @@ fi PASS=true -for FILE in $STAGED_GO_FILES -do - golangci-lint run $FILE - if [[ $? == 1 ]]; then +golangci-lint run +if [[ $? == 1 ]]; then PASS=false - fi -done +fi if ! $PASS; then printf "COMMIT FAILED\n"