update golangci-lint v1.49.0

This commit is contained in:
yugo kobayashi
2022-09-22 12:56:15 +00:00
parent e62480d11c
commit 401cf9579c
15 changed files with 49 additions and 41 deletions

View File

@@ -106,7 +106,7 @@ func (r *XArgsRunner) runE(c *cobra.Command, _ []string) error {
return fmt.Errorf("must specify -- before command")
}
r.Args = r.Args[cmdIndex:]
run := exec.Command(r.Args[0]) // nolint: gosec
run := exec.Command(r.Args[0]) //nolint: gosec
if len(r.Args) > 1 {
r.Args = r.Args[cmdIndex+1:]