Skip to content

Commit

Permalink
Merge pull request #34 from CaptainCodeman/fix-int-env
Browse files Browse the repository at this point in the history
Fix parsing integer environment variables
  • Loading branch information
clockworksoul committed Jul 22, 2018
2 parents 339e936 + d03c0a7 commit a59c5af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion properties.go
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ func getIntVar(key string, defaultVal int) int {
valueInt := defaultVal

if valueString != "" {
i, err := strconv.Atoi(key)
i, err := strconv.Atoi(valueString)

if err != nil {
logfWarn("Failed to parse env property %s: %s is not "+
Expand Down

0 comments on commit a59c5af

Please sign in to comment.