From 5c987ae7778ac29ff701f6b885f3d264019c76e3 Mon Sep 17 00:00:00 2001 From: Michael Wolf Date: Sat, 30 Sep 2023 20:59:19 -0600 Subject: [PATCH] Fix gofmt.sh --- gofmt.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"