mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2026-03-16 01:19:02 +01:00
Enable golangci linter gomnd (#3171)
This commit is contained in:
@@ -106,7 +106,8 @@ func deploy(c *cli.Context) error {
|
||||
}
|
||||
}
|
||||
|
||||
env := c.Args().Get(2)
|
||||
envArgIndex := 2
|
||||
env := c.Args().Get(envArgIndex)
|
||||
if env == "" {
|
||||
return fmt.Errorf("please specify the target environment (i.e. production)")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user