fix(gofmt): fix test-style target in Makefile

pull/291/head
Adam Reese 9 years ago
parent 3cdf4cb3f4
commit d3e4c4e052

@ -53,7 +53,7 @@ test-unit:
.PHONY: .test-style
test-style: lint vet
@if [ $(shell gofmt -e -l -s $(GO_DIRS) | wc -l) ]; then \
@if [[ -z $(shell gofmt -e -l -s $(GO_DIRS) | wc -l) ]]; then \
echo "gofmt check failed:"; gofmt -e -d -s $(GO_DIRS); exit 1; \
fi

Loading…
Cancel
Save