From 9d983f27d69b72f42eeb833cb0f38e78e3819839 Mon Sep 17 00:00:00 2001 From: Unknown Date: Sun, 13 Apr 2014 03:14:43 -0400 Subject: go vet --- modules/middleware/binding_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/middleware') diff --git a/modules/middleware/binding_test.go b/modules/middleware/binding_test.go index 654cef29..2a74e1a6 100644 --- a/modules/middleware/binding_test.go +++ b/modules/middleware/binding_test.go @@ -121,7 +121,7 @@ func handle(test testCase, t *testing.T, index int, post BlogPost, errors Errors if test.ok && errors.Count() > 0 { t.Errorf("%+v should be OK (0 errors), but had errors: %+v", test, errors) } else if !test.ok && errors.Count() == 0 { - t.Errorf("%+v should have errors, but was OK (0 errors): %+v", test) + t.Errorf("%+v should have errors, but was OK (0 errors)", test) } } @@ -132,7 +132,7 @@ func handleEmpty(test emptyPayloadTestCase, t *testing.T, index int, section Blo if test.ok && errors.Count() > 0 { t.Errorf("%+v should be OK (0 errors), but had errors: %+v", test, errors) } else if !test.ok && errors.Count() == 0 { - t.Errorf("%+v should have errors, but was OK (0 errors): %+v", test) + t.Errorf("%+v should have errors, but was OK (0 errors)", test) } } -- cgit v1.2.3