Skip to content

Commit

Permalink
Remove getenvbool which is unused
Browse files Browse the repository at this point in the history
  • Loading branch information
boreq committed Nov 16, 2023
1 parent a06416a commit fef8844
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions service/adapters/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,16 +100,3 @@ func (c *EnvironmentConfigLoader) loadLogLevel() (logging.Level, error) {
func (c *EnvironmentConfigLoader) getenv(key string) string {
return os.Getenv(fmt.Sprintf("%s_%s", envPrefix, key))
}

func (c *EnvironmentConfigLoader) getenvbool(key string) (bool, error) {
switch v := strings.ToUpper(c.getenv(key)); v {
case "":
return false, nil
case "TRUE":
return true, nil
case "FALSE":
return false, nil
default:
return false, fmt.Errorf("unknow value '%s'", v)
}
}

0 comments on commit fef8844

Please sign in to comment.