You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by rn...@apache.org on 2021/02/16 17:31:23 UTC

[couchdb-jiffy] 09/12: Remove unnecessary `maybe_map/1`

This is an automated email from the ASF dual-hosted git repository.

rnewson pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/couchdb-jiffy.git

commit 3f478cf0c51e9cf18dec00c248ef426d84934c44
Author: Paul J. Davis <pa...@gmail.com>
AuthorDate: Thu Dec 10 10:06:31 2020 -0600

    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).