travis: run go vet

This commit is contained in:
Vladimir Mihailenco 2016-11-06 13:29:32 +02:00
parent 80cf5d1652
commit ae523dd552
4 changed files with 3 additions and 2 deletions

View File

@ -12,6 +12,7 @@ go:
matrix: matrix:
allow_failures: allow_failures:
- go: 1.4
- go: tip - go: tip
install: install:

View File

@ -1,6 +1,7 @@
all: testdeps all: testdeps
go test ./... go test ./...
go test ./... -short -race go test ./... -short -race
go vet
testdeps: testdata/redis/src/redis-server testdeps: testdata/redis/src/redis-server

View File

@ -71,7 +71,6 @@ func (it *ScanIterator) Next() bool {
return true return true
} }
} }
return false
} }
// Val returns the key/field at the current cursor position. // Val returns the key/field at the current cursor position.

View File

@ -383,7 +383,7 @@ func commandInfoSliceParser(rd *proto.Reader, n int64) (interface{}, error) {
// Implements proto.MultiBulkParse // Implements proto.MultiBulkParse
func timeParser(rd *proto.Reader, n int64) (interface{}, error) { func timeParser(rd *proto.Reader, n int64) (interface{}, error) {
if n != 2 { if n != 2 {
fmt.Errorf("got %d elements, expected 2", n) return nil, fmt.Errorf("got %d elements, expected 2", n)
} }
secStr, err := rd.ReadStringReply() secStr, err := rd.ReadStringReply()