Skip to content

Commit

Permalink
Removed unused vars
Browse files Browse the repository at this point in the history
  • Loading branch information
torresdal committed Mar 11, 2020
1 parent 2236ccb commit 4158e7d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions cmd/azure-keyvault-env/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ func main() {
var err error
retryTimes := 3
waitTimeBetweenRetries := 3
clearSensitiveFiles := true
// clearSensitiveFiles := true

retryTimesEnv, ok := os.LookupEnv("ENV_INJECTOR_RETRIES")
if ok {
Expand Down Expand Up @@ -161,11 +161,11 @@ func main() {
logger.Infof("found original container command to be %s %s", origCommand, origArgs)
}

if keepSensitiveFiles, exists := os.LookupEnv("ENV_INJECTOR_KEEP_SENSITIVE_FILES"); exists {
if s, err := strconv.ParseBool(keepSensitiveFiles); err != nil && s {
clearSensitiveFiles = false
}
}
// if keepSensitiveFiles, exists := os.LookupEnv("ENV_INJECTOR_KEEP_SENSITIVE_FILES"); exists {
// if s, err := strconv.ParseBool(keepSensitiveFiles); err != nil && s {
// clearSensitiveFiles = false
// }
// }

vaultService := vault.NewService(creds)

Expand Down

0 comments on commit 4158e7d

Please sign in to comment.