Revert "Don't set twice"

This reverts commit 6dca89f616.
This commit is contained in:
Evgeniy Khramtsov 2017-12-25 08:41:51 +03:00
parent 9ba471e210
commit 4e49919d16
1 changed files with 2 additions and 2 deletions

View File

@ -891,8 +891,8 @@ normalize_path([Part | Path], Norm) ->
-spec get_certfile([proplists:property()]) -> binary() | undefined.
get_certfile(Opts) ->
case lists:keyfind(certfile, 1, Opts) of
{_, _CertFile} ->
undefined;
{_, CertFile} ->
CertFile;
false ->
case ejabberd_pkix:get_certfile(?MYNAME) of
{ok, CertFile} ->