From 3f478cf0c51e9cf18dec00c248ef426d84934c44 Mon Sep 17 00:00:00 2001 From: "Paul J. Davis" Date: Thu, 10 Dec 2020 10:06:31 -0600 Subject: [PATCH] Remove unnecessary `maybe_map/1` Thought slightly harder and realized this was unnecessary. --- src/jiffy.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jiffy.erl b/src/jiffy.erl index 1f3e2ad..6af15b5 100644 --- a/src/jiffy.erl +++ b/src/jiffy.erl @@ -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).