Fixing several (but not all) go vet errors. Most are around string formatting, or unreachable code.

This commit is contained in:
goltermann
2016-03-22 17:26:50 -07:00
parent 1f8773ee45
commit 34d4eaea08
42 changed files with 68 additions and 72 deletions

View File

@@ -172,7 +172,7 @@ func TestSyncAPIs(t *testing.T) {
cntrl := ThirdPartyController{master: &fake}
if err := cntrl.syncResourceList(test.list); err != nil {
t.Errorf("[%s] unexpected error: %v", test.name)
t.Errorf("[%s] unexpected error: %v", test.name, err)
}
if len(test.expectedInstalled) != len(fake.installed) {
t.Errorf("[%s] unexpected installed APIs: %d, expected %d (%#v)", test.name, len(fake.installed), len(test.expectedInstalled), fake.installed[0])