Update files based on go lint

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
Michael Crosby
2017-09-29 16:03:09 -04:00
parent 70b353dff2
commit f43b7acfd2
22 changed files with 61 additions and 44 deletions

View File

@@ -42,6 +42,7 @@ type unixSocketCredentials struct {
serverName string
}
// NewUnixSocketCredentials returns TransportCredentials for a local unix socket
func NewUnixSocketCredentials(uid, gid int) credentials.TransportCredentials {
return &unixSocketCredentials{uid, gid, "locahost"}
}

View File

@@ -44,12 +44,7 @@ var namespacesCreateCommand = cli.Command{
if err != nil {
return err
}
if err := namespaces.Create(ctx, namespace, labels); err != nil {
return err
}
return nil
return namespaces.Create(ctx, namespace, labels)
},
}

View File

@@ -47,9 +47,6 @@ var taskPsCommand = cli.Command{
return err
}
}
if err := w.Flush(); err != nil {
return err
}
return nil
return w.Flush()
},
}