diff --git a/pkg/functions/docker/driver.go b/pkg/functions/docker/driver.go index 20b7f4583..5adf0341d 100644 --- a/pkg/functions/docker/driver.go +++ b/pkg/functions/docker/driver.go @@ -93,10 +93,9 @@ func (d *Driver) Create(ctx context.Context, f *functions.Function) error { secret, err := d.secrets.GetSecret(ctx, f.OrganizationID, secretName) if err != nil { return errors.Wrap(err, "cannot get secret "+secretName) - } else { - for k, v := range secret.Secrets { - envVar = append(envVar, k+"="+v) - } + } + for k, v := range secret.Secrets { + envVar = append(envVar, k+"="+v) } } containerName := getID(f.Name, f.FaasID)