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

@@ -81,7 +81,7 @@ func (r *HealthyRegistry) ListMinions(ctx api.Context) (currentMinions *api.Mini
if status == health.Healthy {
result.Items = append(result.Items, minion)
} else {
glog.Errorf("%s failed a health check, ignoring.", minion)
glog.Errorf("%#v failed a health check, ignoring.", minion)
}
}
return result, nil

View File

@@ -152,7 +152,7 @@ func TestMinionStorageValidUpdate(t *testing.T) {
"baz": "home",
}
if _, err = storage.Update(ctx, minion); err != nil {
t.Error("Unexpected error: %v", err)
t.Errorf("Unexpected error: %v", err)
}
}