Pick-up test misses

There were some coverage misses in tests, so check in unit test coverage
or remove branches not currently needed.
This commit is contained in:
martinsumner 2016-11-18 21:35:45 +00:00
parent 427b97873c
commit f40ecdd529
6 changed files with 37 additions and 27 deletions

View file

@ -866,12 +866,7 @@ get_opt(Key, Opts) ->
get_opt(Key, Opts, Default) ->
case proplists:get_value(Key, Opts) of
undefined ->
case application:get_env(?MODULE, Key) of
{ok, Value} ->
Value;
undefined ->
Default
end;
Default;
Value ->
Value
end.