Skip to content

Commit 86285b6

Browse files
committed
Simplify gofmt check in Travis
Instead of providing a custom script, the check can be replaced with a handy one-liner: `diff -u <(echo -n) <(gofmt -d -s .)`
1 parent ffb574b commit 86285b6

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

.travis.gofmt.sh

Lines changed: 0 additions & 10 deletions
This file was deleted.

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ language: go
33
install: go get
44

55
script:
6-
- ./.travis.gofmt.sh
6+
- diff -u <(echo -n) <(gofmt -d -s .)
77
- go test -short

0 commit comments

Comments
 (0)