Skip to content

Commit

Permalink
chore: please dialyzer
Browse files Browse the repository at this point in the history
  • Loading branch information
keynslug committed Dec 24, 2024
1 parent 8450e1b commit 336c8cf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/hocon.app.src
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
{applications, [
kernel,
stdlib,
compiler,
getopt,
typerefl
]},
Expand Down
3 changes: 2 additions & 1 deletion src/hocon_pp.erl
Original file line number Diff line number Diff line change
Expand Up @@ -478,8 +478,9 @@ esc($\") -> "\\\"";
esc($\\) -> "\\\\";
esc(Char) -> Char.

-include_lib("eunit/include/eunit.hrl").
-ifdef(TEST).
-include_lib("eunit/include/eunit.hrl").

simple_string_test_() ->
[
?_assert(is_simple_string("")),
Expand Down
2 changes: 1 addition & 1 deletion src/hocon_tconf.erl
Original file line number Diff line number Diff line change
Expand Up @@ -1191,7 +1191,7 @@ validation_errs(Opts, ContextIn) ->
ensure_path(_Opts, #{path := _} = Context) -> Context;
ensure_path(Opts, Context) -> Context#{path => path(Opts)}.

-spec plain_put(opts(), [binary()], term(), hocon:confing()) -> hocon:config().
-spec plain_put(opts(), [binary()], term(), hocon:config()) -> hocon:config().
plain_put(_Opts, [], Value, _Old) ->
Value;
plain_put(Opts, [Name | Path], Value, Conf0) ->
Expand Down

0 comments on commit 336c8cf

Please sign in to comment.