removes overly restrictive guards
This commit is contained in:
parent
0035cd67a7
commit
726838cfff
2 changed files with 2 additions and 4 deletions
|
@ -36,8 +36,7 @@
|
|||
|
||||
-spec to_term(Source::(binary() | list()), Opts::opts()) -> binary().
|
||||
|
||||
to_term(Source, Opts) when (is_binary(Source) andalso is_list(Opts))
|
||||
orelse (is_list(Source) andalso is_list(Opts)) ->
|
||||
to_term(Source, Opts) when is_list(Opts) ->
|
||||
(gen_json:parser(?MODULE, Opts, jsx_utils:extract_opts(Opts)))(Source).
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue