fix: fix dialyzer warning
This commit is contained in:
parent
45254c5936
commit
dd7dcfe373
|
@ -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 ->
|
||||||
|
|
Loading…
Reference in New Issue