~cypheon/ecertmon

98ccc5a19aaf183b472fc72e3b28185be12be7c8 — Johann Rudloff 1 year, 9 months ago 35cd6d3
Use foreach instead of map to make dialyzer happy
1 files changed, 4 insertions(+), 4 deletions(-)

M src/certmon_app.erl
M src/certmon_app.erl => src/certmon_app.erl +4 -4
@@ 26,11 26,11 @@ stop(_State) ->
load_config_file(FilePath) ->
  case file:consult(FilePath) of
    {ok, Config} -> 
      lists:map(
        fun ({Par, Val}) -> application:set_env(certmon, Par, Val) end, Config
      lists:foreach(
        fun ({Par, Val}) -> ok = application:set_env(certmon, Par, Val) end, Config
       ),
          logger:notice("Config loaded from ~n", [FilePath]),
          ok;
      logger:notice("Config loaded from ~n", [FilePath]),
      ok;
    {error, Error} -> logger:error("Unable to load config file from path ~p: ~p, please set the environment variable CERTMON_CONFIG_FILE accordingly", [FilePath, Error]),
         Error
  end.