Update -spec(). for proper module readibility

Handle "Invalid type specification"
This commit is contained in:
Paulo F. Oliveira 2018-02-09 23:59:30 +00:00
parent fc2a001073
commit f80903b3f5

View file

@ -80,7 +80,7 @@ consult(File, Config) when is_list(Config) ->
end. end.
-type state() :: {list(), #config{}}. -type state() :: {[], proplists:proplist(), {list(), #config{}}}.
-spec init(Config::proplists:proplist()) -> state(). -spec init(Config::proplists:proplist()) -> state().
init(Config) -> {[], Config, jsx_to_term:start_term(Config)}. init(Config) -> {[], Config, jsx_to_term:start_term(Config)}.