fix: remove case clause where the error clause can never be reached
This commit is contained in:
parent
39a26f8225
commit
6971a3109f
|
@ -41,12 +41,7 @@ config_key_path() ->
|
||||||
[connectors].
|
[connectors].
|
||||||
|
|
||||||
pre_config_update(Path, Conf, _OldConfig) when is_map(Conf) ->
|
pre_config_update(Path, Conf, _OldConfig) when is_map(Conf) ->
|
||||||
case emqx_connector_ssl:convert_certs(filename:join(Path), Conf) of
|
emqx_connector_ssl:convert_certs(filename:join(Path), Conf).
|
||||||
{error, Reason} ->
|
|
||||||
{error, Reason};
|
|
||||||
{ok, ConfNew} ->
|
|
||||||
{ok, ConfNew}
|
|
||||||
end.
|
|
||||||
|
|
||||||
-dialyzer([{nowarn_function, [post_config_update/5]}, error_handling]).
|
-dialyzer([{nowarn_function, [post_config_update/5]}, error_handling]).
|
||||||
post_config_update([connectors, Type, Name] = Path, '$remove', _, OldConf, _AppEnvs) ->
|
post_config_update([connectors, Type, Name] = Path, '$remove', _, OldConf, _AppEnvs) ->
|
||||||
|
|
Loading…
Reference in New Issue