fix: fix dialyzer warning

This commit is contained in:
某文 2023-04-13 20:04:03 +08:00
parent 45254c5936
commit dd7dcfe373
1 changed files with 5 additions and 1 deletions

View File

@ -148,7 +148,11 @@ list(Enable) ->
-spec create([{Key :: binary(), Value :: binary()}] | #{atom() => binary()}) -> -spec create([{Key :: binary(), Value :: binary()}] | #{atom() => binary()}) ->
{ok, #?TRACE{}} {ok, #?TRACE{}}
| {error, {duplicate_condition, iodata()} | {already_existed, iodata()} | iodata()}. | {error,
{duplicate_condition, iodata()}
| {already_existed, iodata()}
| {error, {bad_type, any()}}
| iodata()}.
create(Trace) -> create(Trace) ->
case mnesia:table_info(?TRACE, size) < ?MAX_SIZE of case mnesia:table_info(?TRACE, size) < ?MAX_SIZE of
true -> true ->