fix make vet failures, and enable make vet on CI

Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
This commit is contained in:
Akihiro Suda
2017-05-09 04:40:21 +00:00
parent 25a161bf5d
commit 837205005f
21 changed files with 58 additions and 76 deletions

10
cmd/dist/rootfs.go vendored
View File

@@ -34,9 +34,8 @@ var rootfsUnpackCommand = cli.Command{
ArgsUsage: "[flags] <digest>",
Flags: []cli.Flag{},
Action: func(clicontext *cli.Context) error {
var (
ctx = background
)
ctx, cancel := appContext()
defer cancel()
dgst, err := digest.Parse(clicontext.Args().First())
if err != nil {
@@ -74,9 +73,8 @@ var rootfsPrepareCommand = cli.Command{
ArgsUsage: "[flags] <digest> <target>",
Flags: []cli.Flag{},
Action: func(clicontext *cli.Context) error {
var (
ctx = background
)
ctx, cancel := appContext()
defer cancel()
if clicontext.NArg() != 2 {
return cli.ShowSubcommandHelp(clicontext)