Merge pull request #7873 from emqx/EMQX-2412-test-improve-emqx-connector-test-coverage-from-71-to-80

fix: remove case clause where the error clause can never be reached
This commit is contained in:
Chris Hicks 2022-05-06 10:34:46 +02:00 committed by GitHub
commit 2f58eda91e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 6 deletions

View File

@ -41,12 +41,7 @@ config_key_path() ->
[connectors].
pre_config_update(Path, Conf, _OldConfig) when is_map(Conf) ->
case emqx_connector_ssl:convert_certs(filename:join(Path), Conf) of
{error, Reason} ->
{error, Reason};
{ok, ConfNew} ->
{ok, ConfNew}
end.
emqx_connector_ssl:convert_certs(filename:join(Path), Conf).
-dialyzer([{nowarn_function, [post_config_update/5]}, error_handling]).
post_config_update([connectors, Type, Name] = Path, '$remove', _, OldConf, _AppEnvs) ->