refactor: simplfiy for...range loops
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
3b93f893fd
commit
32b2bf245b
|
@ -46,7 +46,7 @@ var appCheckCommand = &cli.Command{
|
|||
}
|
||||
|
||||
var missing []string
|
||||
for k, _ := range envSample {
|
||||
for k := range envSample {
|
||||
if _, ok := appEnv.Env[k]; !ok {
|
||||
missing = append(missing, k)
|
||||
}
|
||||
|
|
|
@ -58,7 +58,7 @@ var appSecretGenerateCommand = &cli.Command{
|
|||
} else {
|
||||
secretName := c.Args().Get(1)
|
||||
secretVersion := c.Args().Get(2)
|
||||
for sec, _ := range secretEnvVars {
|
||||
for sec := range secretEnvVars {
|
||||
parsed := secret.ParseSecretEnvVarName(sec)
|
||||
if secretName == parsed {
|
||||
secretsToCreate[sec] = secretVersion
|
||||
|
|
Loading…
Reference in New Issue