Skip to content

Commit

Permalink
escalus_config:get_config/5 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
erszcz committed Feb 16, 2012
1 parent 40411c8 commit 232276f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/escalus_config.erl
Expand Up @@ -42,8 +42,8 @@ get_config(Option, Config, Default) ->
end.

get_config(USName, UserSpec, CName, Config, Default) ->
case lists:keysearch(USName, 1, UserSpec) of
{value, Value} ->
case lists:keyfind(USName, 1, UserSpec) of
{USName, Value} ->
Value;
false ->
get_config(CName, Config, Default)
Expand Down

0 comments on commit 232276f

Please sign in to comment.