Skip to content

Commit

Permalink
Fix config parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
kamko committed Dec 28, 2019
1 parent 00d2329 commit 436c855
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions echoer.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func shouldRenderBodyAsString() bool {
val, present := os.LookupEnv("BODY_AS_STRING")
if present {
boolVal, err := strconv.ParseBool(val)
if err != nil {
if err == nil {
return boolVal
}
}
Expand All @@ -69,7 +69,7 @@ func port() (port string) {
val, present := os.LookupEnv("PORT")
if present {
tPort, err := strconv.Atoi(val)
if err != nil {
if err == nil {
port = strconv.Itoa(tPort)
}
}
Expand Down

0 comments on commit 436c855

Please sign in to comment.