From f5fad101931f8794959bd4361fe2730388d60866 Mon Sep 17 00:00:00 2001 From: Andrey Vagin Date: Fri, 10 Apr 2015 13:37:47 +0300 Subject: [PATCH] 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 --- vendor/src/github.com/golang/protobuf/proto/all_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vendor/src/github.com/golang/protobuf/proto/all_test.go b/vendor/src/github.com/golang/protobuf/proto/all_test.go index 8784187c..2bfdb1c5 100644 --- a/vendor/src/github.com/golang/protobuf/proto/all_test.go +++ b/vendor/src/github.com/golang/protobuf/proto/all_test.go @@ -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.