minor refactoring of feature detection

This commit is contained in:
alisdair sullivan 2014-04-21 23:44:41 +00:00
parent 4f63503aa2
commit 649329c362
2 changed files with 4 additions and 4 deletions

View file

@ -1,7 +1,7 @@
case os:getenv("JSX_NOMAPS") or proplists:get_value(jsx_nomaps, CONFIG, false) of
false ->
try file:script("config/maps") of
{ok, true} -> [{erl_opts, [{d, release_supports_maps}]}] ++ CONFIG;
{ok, true} -> [{erl_opts, [{d, maps_support}]}] ++ CONFIG;
_ -> CONFIG
catch _:_ -> CONFIG
end;