Commit 0f42def1 authored by Janet Kuo's avatar Janet Kuo

Fix incorrect gofmt hint

parent d1843840
...@@ -41,7 +41,7 @@ find_files() { ...@@ -41,7 +41,7 @@ find_files() {
\) -name '*.go' \) -name '*.go'
} }
GOFMT="gofmt -s" GOFMT="gofmt -s -w"
bad_files=$(find_files | xargs $GOFMT -l) bad_files=$(find_files | xargs $GOFMT -l)
if [[ -n "${bad_files}" ]]; then if [[ -n "${bad_files}" ]]; then
echo "!!! '$GOFMT' needs to be run on the following files: " echo "!!! '$GOFMT' needs to be run on the following files: "
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment