diff --git a/gofmt.sh b/gofmt.sh index 92a288d..2c204ab 100755 --- a/gofmt.sh +++ b/gofmt.sh @@ -37,7 +37,7 @@ if [[ "$WOULD_REFORMAT" = "would_reformat" ]]; then fi if [[ "$WOULD_REFORMAT" = "do_reformat" ]]; then - out=$(npx prettier --write "$file" 2>&1 >/dev/null) + out=$(gofmt -w "$file" 2>&1 >/dev/null) retval="$?" echo "$out"