Makes vet check more sure fire now that it's xargs-ed.

This commit is contained in:
James Phillips 2016-02-17 16:02:42 -08:00
parent 3ebd78013c
commit d1925a3fe1
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ vet:
| cut -d '/' -f 4- \
| xargs -n1 \
go tool vet $(VETARGS) ;\
if [ $$? -eq 1 ]; then \
if [ $$? -ne 0 ]; then \
echo ""; \
echo "Vet found suspicious constructs. Please check the reported constructs"; \
echo "and fix them if necessary before submitting the code for reviewal."; \