From a89ea71c4acb31aa24aabcfcf5d0ec84008bfc34 Mon Sep 17 00:00:00 2001 From: Michael Kuzmin Date: Fri, 23 Mar 2018 23:54:20 +0300 Subject: [PATCH] Fix 'go vet' errors --- clone/config_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/clone/config_test.go b/clone/config_test.go index 7e4829210..d0517f900 100644 --- a/clone/config_test.go +++ b/clone/config_test.go @@ -53,16 +53,16 @@ func minimalConfig() map[string]interface{} { func testConfigOk(t *testing.T, warns []string, err error) { if len(warns) > 0 { - t.Error("Should be no warnings: %#v", warns) + t.Errorf("Should be no warnings: %#v", warns) } if err != nil { - t.Error("Unexpected error: %s", err) + t.Errorf("Unexpected error: %s", err) } } func testConfigErr(t *testing.T, context string, warns []string, err error) { if len(warns) > 0 { - t.Error("Should be no warnings: %#v", warns) + t.Errorf("Should be no warnings: %#v", warns) } if err == nil { t.Error("An error is not raised for", context)