Skip to content

Commit

Permalink
Remove redundant environment variable check
Browse files Browse the repository at this point in the history
  • Loading branch information
nixigaj committed Dec 11, 2023
1 parent 82fa656 commit cec127d
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions cf-tlsa-acmesh.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,13 +106,6 @@ func main() {
}

func getTLSARecords() ([]tlsaRecord, error) {
requiredEnvVars := []string{"ZONE_ID", "API_TOKEN", "DOMAIN"}
for _, envVar := range requiredEnvVars {
if os.Getenv(envVar) == "" {
return nil, fmt.Errorf("%s environment variable is not defined", envVar)
}
}

zoneID := os.Getenv("ZONE_ID")
authToken := os.Getenv("API_TOKEN")
domain := os.Getenv("DOMAIN")
Expand Down

0 comments on commit cec127d

Please sign in to comment.