From 32dbbfd64c0f24f8ffb2a70412ec380856ac9bfe Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Mon, 28 Mar 2016 10:52:48 -0600 Subject: [PATCH] Better way of checking gofmt --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index a292fca5c..51fca4293 100644 --- a/.travis.yml +++ b/.travis.yml @@ -22,7 +22,7 @@ install: - go get github.com/gordonklaus/ineffassign script: - - "[ -z \"$(find -name \"*.go\" | xargs gofmt -s -l)\" ] || exit 1" + - diff <(echo -n) <(gofmt -s -d .) - ineffassign . - go vet ./... - go test ./...