Skip to content

Commit

Permalink
fix(dialyzer): bad function spec
Browse files Browse the repository at this point in the history
  • Loading branch information
terry-xiaoyu committed Jun 23, 2021
1 parent b0a0acb commit 6363a77
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/hocon_schema.erl
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,8 @@ generate(Schema, Conf, Opts) ->
{Mapped, _NewConf} = map_translate(Schema, Conf, Opts),
Mapped.

-spec(map_translate(schema(), hocon:config(), opts()) -> [proplists:property()]).
-spec(map_translate(schema(), hocon:config(), opts()) ->
{[proplists:property()], hocon:config()}).
map_translate(Schema, Conf, Opts) ->
{Mapped, NewConf} = map(Schema, Conf, all, Opts),
Translated = translate(Schema, NewConf, Mapped),
Expand Down

0 comments on commit 6363a77

Please sign in to comment.