Skip to content
This repository has been archived by the owner on Feb 27, 2023. It is now read-only.

Commit

Permalink
chore: fix script to check code format
Browse files Browse the repository at this point in the history
Signed-off-by: lowzj <[email protected]>
  • Loading branch information
lowzj committed Jul 24, 2019
1 parent db52750 commit ddfcaf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hack/check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ cd "${curDir}/../" || return
check() {
# gofmt
echo "CHECK: gofmt, check code formats"
result=$(find . -name '*.go' -print0 | xargs gofmt -s -l -d 2>/dev/null)
result=$(find . -name '*.go' -print0 | xargs -0 gofmt -s -l -d 2>/dev/null)
if [[ ${#result} -gt 0 ]]; then
echo "${result}"
echo "CHECK: please format Go code with 'gofmt -s -w .'"
Expand Down

0 comments on commit ddfcaf4

Please sign in to comment.