Fix gofmt.sh
This commit is contained in:
2
gofmt.sh
2
gofmt.sh
@@ -37,7 +37,7 @@ if [[ "$WOULD_REFORMAT" = "would_reformat" ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$WOULD_REFORMAT" = "do_reformat" ]]; then
|
if [[ "$WOULD_REFORMAT" = "do_reformat" ]]; then
|
||||||
out=$(npx prettier --write "$file" 2>&1 >/dev/null)
|
out=$(gofmt -w "$file" 2>&1 >/dev/null)
|
||||||
retval="$?"
|
retval="$?"
|
||||||
|
|
||||||
echo "$out"
|
echo "$out"
|
||||||
|
|||||||
Reference in New Issue
Block a user