mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 14:07:14 +00:00
Fix incorrect gofmt hint
This commit is contained in:
parent
d18438406b
commit
0f42def115
@ -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: "
|
||||||
|
Loading…
Reference in New Issue
Block a user