Fix incorrect gofmt hint
This commit is contained in:
@@ -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: "
|
||||||
|
Reference in New Issue
Block a user