refactor: simplfiy for...range loops
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Roxie Gibson 2021-08-31 16:17:08 +01:00
parent 3b93f893fd
commit 32b2bf245b
Signed by untrusted user: roxxers
GPG Key ID: 5D0140EDEE123F4D
2 changed files with 2 additions and 2 deletions

View File

@ -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)
}

View File

@ -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