Merge pull request #822 from AkihiroSuda/fix-vet

fix `make vet` failures, and enable `make vet` on CI
This commit is contained in:
Stephen Day
2017-05-10 11:42:24 -07:00
committed by GitHub
21 changed files with 58 additions and 76 deletions

3
cmd/dist/edit.go vendored
View File

@@ -27,10 +27,11 @@ var editCommand = cli.Command{
},
Action: func(context *cli.Context) error {
var (
ctx = background
validate = context.String("validate")
object = context.Args().First()
)
ctx, cancel := appContext()
defer cancel()
if validate != "" {
return errors.New("validating the edit result not supported")