fix(ft): comment out some clauses as "unreachable"

This commit is contained in:
Andrew Mayorov 2023-03-29 14:37:29 +03:00 committed by Ilya Averyanov
parent bef5cc9c0f
commit 11edfc1c6a
1 changed files with 10 additions and 6 deletions

View File

@ -29,9 +29,11 @@ list_exports_local() ->
emqx_ft_storage:with_storage_type(local, fun(Storage) ->
case emqx_ft_storage_exporter:exporter(Storage) of
{emqx_ft_storage_exporter_fs, Options} ->
emqx_ft_storage_exporter_fs:list_local(Options);
InvalidExporter ->
{error, {invalid_exporter, InvalidExporter}}
emqx_ft_storage_exporter_fs:list_local(Options)
% NOTE
% This case clause is currently deemed unreachable by dialyzer.
% InvalidExporter ->
% {error, {invalid_exporter, InvalidExporter}}
end
end).
@ -39,8 +41,10 @@ read_export_file_local(Filepath, CallerPid) ->
emqx_ft_storage:with_storage_type(local, fun(Storage) ->
case emqx_ft_storage_exporter:exporter(Storage) of
{emqx_ft_storage_exporter_fs, Options} ->
emqx_ft_storage_exporter_fs:start_reader(Options, Filepath, CallerPid);
InvalidExporter ->
{error, {invalid_exporter, InvalidExporter}}
emqx_ft_storage_exporter_fs:start_reader(Options, Filepath, CallerPid)
% NOTE
% This case clause is currently deemed unreachable by dialyzer.
% InvalidExporter ->
% {error, {invalid_exporter, InvalidExporter}}
end
end).