fix 'go vet' warnings

This commit is contained in:
Tim Hockin
2014-11-20 20:42:48 +08:00
parent ea960711ff
commit 95a9098311
19 changed files with 32 additions and 34 deletions

View File

@@ -82,7 +82,7 @@ func TestRESTMapperVersionAndKindForResource(t *testing.T) {
v, k, err := mapper.VersionAndKindForResource(testCase.Resource)
hasErr := err != nil
if hasErr != testCase.Err {
t.Errorf("%d: unexpected error behavior %f: %v", i, testCase.Err, err)
t.Errorf("%d: unexpected error behavior %t: %v", i, testCase.Err, err)
continue
}
if v != testCase.APIVersion || k != testCase.Kind {
@@ -147,7 +147,7 @@ func TestRESTMapperRESTMapping(t *testing.T) {
mapping, err := mapper.RESTMapping(testCase.APIVersion, testCase.Kind)
hasErr := err != nil
if hasErr != testCase.Err {
t.Errorf("%d: unexpected error behavior %f: %v", i, testCase.Err, err)
t.Errorf("%d: unexpected error behavior %t: %v", i, testCase.Err, err)
}
if hasErr {
continue