Skip to content

Commit af4c8be

Browse files
Update lib/elixir/src/elixir_json.erl
Co-authored-by: Eksperimental <[email protected]>
1 parent d4a5566 commit af4c8be

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/elixir/src/elixir_json.erl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ list_loop([Elem | Rest], Encode) -> [$,, Encode(Elem, Encode) | list_loop(Rest,
145145
encode_map(Map, Encode) when is_map(Map) ->
146146
do_encode_map(Map, Encode).
147147

148+
%% TODO: Remove conditional once Erlang/OTP 26+ is supported exclusively supported.
148149
-if(?OTP_RELEASE >= 26).
149150
do_encode_map(Map, Encode) when is_function(Encode, 2) ->
150151
encode_object([[$,, key(Key, Encode), $: | Encode(Value, Encode)] || Key := Value <- Map]).

0 commit comments

Comments
 (0)