protobuf: workaround a go vet error

vendor/src/github.com/golang/protobuf/proto/all_test.go:1284: result of fmt.Sprintf call not used

Do we really need to execute go vet for vendor? I don't find how to exclude them.

Signed-off-by: Andrey Vagin <avagin@openvz.org>
This commit is contained in:
Andrey Vagin 2015-04-10 13:37:47 +03:00 committed by Michael Crosby
parent 5231fbf143
commit f5fad10193
1 changed files with 3 additions and 1 deletions

View File

@ -1281,7 +1281,9 @@ func TestEnum(t *testing.T) {
// We don't care what the value actually is, just as long as it doesn't crash.
func TestPrintingNilEnumFields(t *testing.T) {
pb := new(GoEnum)
fmt.Sprintf("%+v", pb)
if fmt.Sprintf("%+v", pb) == "" {
t.Errorf("expected non-empty string")
}
}
// Verify that absent required fields cause Marshal/Unmarshal to return errors.