fix(ft): comment out some clauses as "unreachable"
This commit is contained in:
parent
bef5cc9c0f
commit
11edfc1c6a
|
@ -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).
|
||||
|
|
Loading…
Reference in New Issue