From a27d0d3837b307a20c5927ca36ba318a7059f846 Mon Sep 17 00:00:00 2001 From: Edd Robinson Date: Wed, 18 May 2016 14:02:48 +0100 Subject: [PATCH] Fix incorrect composites check setting --- .hooks/pre-commit | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.hooks/pre-commit b/.hooks/pre-commit index 63f38ad65d..6cf240bf6d 100755 --- a/.hooks/pre-commit +++ b/.hooks/pre-commit @@ -6,8 +6,7 @@ if [ $fmtcount -gt 0 ]; then exit 1 fi -# Due to the way composites work, vet will fail for some of our tests so we ignore it -vetcount=`go tool vet -composites=true ./ 2>&1 | wc -l` +vetcount=`go tool vet ./ 2>&1 | wc -l` if [ $vetcount -gt 0 ]; then echo "Some files aren't passing vet heuristics, please run 'go vet ./...' to see the errors it flags and correct your source code before committing" exit 1