Skip to content
Permalink
Browse files
Remove unnecessary maybe_map/1
Thought slightly harder and realized this was unnecessary.
  • Loading branch information
davisp committed Dec 10, 2020
1 parent a3c36d6 commit 3f478cf0c51e9cf18dec00c248ef426d84934c44
Showing 1 changed file with 1 addition and 1 deletion.
@@ -137,7 +137,7 @@ finish_decode({Pairs}) when is_list(Pairs) ->
finish_decode(Vals) when is_list(Vals) ->
finish_decode_arr(Vals, []);
finish_decode({has_trailer, Value, Rest}) ->
{has_trailer, maybe_map(finish_decode(Value)), Rest};
{has_trailer, finish_decode(Value), Rest};
finish_decode(Val) ->
maybe_map(Val).

0 comments on commit 3f478cf

Please sign in to comment.