1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #18220 from mqliang/temvarible

remove unnecessary temporary variable
This commit is contained in:
Arnaud Porterie 2015-11-26 11:40:02 +01:00
commit bb11900393

View file

@ -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)
}
}
}