From 478b773fe5aa7b9bdfc571d3e8f8bc3bc47826ea Mon Sep 17 00:00:00 2001 From: mqliang Date: Wed, 25 Nov 2015 17:30:13 +0800 Subject: [PATCH] remove unnecessary temporary variable Signed-off-by: mqliang --- builder/remote_test.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/builder/remote_test.go b/builder/remote_test.go index b6e846be60..10d73ee550 100644 --- a/builder/remote_test.go +++ b/builder/remote_test.go @@ -2,7 +2,6 @@ package builder import ( "bytes" - "fmt" "io/ioutil" "testing" ) @@ -32,15 +31,13 @@ func TestSelectAcceptableMIME(t *testing.T) { for _, m := range invalidMimeStrings { if len(selectAcceptableMIME(m)) > 0 { - err := fmt.Errorf("Should not have accepted %q", m) - t.Fatal(err) + t.Fatalf("Should not have accepted %q", m) } } for _, m := range validMimeStrings { if str := selectAcceptableMIME(m); str == "" { - err := fmt.Errorf("Should have accepted %q", m) - t.Fatal(err) + t.Fatalf("Should have accepted %q", m) } } }