Skip to content

Commit

Permalink
Apply review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
NelsonVides committed Sep 3, 2024
1 parent 8b0daa2 commit 76345bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rebar.config
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
%%-*- mode: erlang -*-
{profiles, [{test, [{deps, [{jsx, "3.1.0"}, {proper, "1.4.0"}]}]}]}.
{profiles, [{test, [{deps, [{jsx, "3.1.0"}, {rfc3339, "0.9.0"}, {proper, "1.4.0"}]}]}]}.
{erl_opts, [ {platform_define, "^R[0-9]+", erlang_deprecated_types}
%% , warn_export_all
, warn_export_vars
Expand Down
4 changes: 2 additions & 2 deletions src/jesse_lib.erl
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,14 @@ json_encode(Bin) ->
-else.
%% OTP 26 to 21.
json_decode(Bin) ->
jsx:decode(Bin).
jsx:decode(Bin, [{return_maps, false}]).
json_encode(Bin) ->
jsx:encode(Bin).
-endif.
-else.
%% OTP 20 or lower.
json_decode(Bin) ->
jsx:decode(Bin).
jsx:decode(Bin, [{return_maps, false}]).
json_encode(Bin) ->
jsx:encode(Bin).
-endif.
Expand Down

0 comments on commit 76345bc

Please sign in to comment.