Fix pre-commit hook

This commit is contained in:
Deluan authored and Joe Stump committed 2026-01-02 19:26:37 +00:00
1 parent b357be3973
commit a57b5d46cb
1 file changed
+1 -1
+1 -1
View File
@@ -10,7 +10,7 @@
#
# This script does not handle file names that contain spaces.
gofmtcmd=go run golang.org/x/tools/cmd/goimports
gofmtcmd="go run golang.org/x/tools/cmd/goimports"
gofiles=$(git diff --cached --name-only --diff-filter=ACM | grep '.go$')
[ -z "$gofiles" ] && exit 0