fix golint warnings in daemon controller

The only on remaining asks to rename DaemonSetsController, which is a
public interface and would need proper deprecation first.
This commit is contained in:
dmathieu
2018-02-05 10:11:09 +01:00
committed by dmathieu
parent 68da45623f
commit dadce343be
4 changed files with 13 additions and 9 deletions

View File

@@ -84,12 +84,12 @@ var (
)
func getKey(ds *extensions.DaemonSet, t *testing.T) string {
if key, err := controller.KeyFunc(ds); err != nil {
key, err := controller.KeyFunc(ds)
if err != nil {
t.Errorf("Unexpected error getting key for ds %v: %v", ds.Name, err)
return ""
} else {
return key
}
return key
}
func newDaemonSet(name string) *extensions.DaemonSet {