Skip to content

Commit

Permalink
Anonymous function should be define before using it
Browse files Browse the repository at this point in the history
  • Loading branch information
nesimtunc committed May 11, 2020
1 parent 7269dac commit 31b1090
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions config/releases.exs
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ config :coliving, ColivingWeb.Endpoint,
cache_static_manifest: "priv/static/cache_manifest.json",
secret_key_base: secret_key_base

config :coliving,
app_title: System.get_env("APP_TITLE") || "CoThings",
usage_logging_enabled: toBool.(System.get_env("LOG_ROOM_USAGE"), false)

toBool = fn
"true", _ -> true
"false", _ -> false
nil, default -> default
end

config :coliving,
app_title: System.get_env("APP_TITLE") || "CoThings",
usage_logging_enabled: toBool.(System.get_env("LOG_ROOM_USAGE"), false)

0 comments on commit 31b1090

Please sign in to comment.