Selaa lähdekoodia

Remove unnecessary `maybe_map/1`

Thought slightly harder and realized this was unnecessary.
pull/207/head
Paul J. Davis 4 vuotta sitten
vanhempi
commit
3f478cf0c5
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. +1
    -1
      src/jiffy.erl

+ 1
- 1
src/jiffy.erl Näytä tiedosto

@ -137,7 +137,7 @@ finish_decode({Pairs}) when is_list(Pairs) ->
finish_decode(Vals) when is_list(Vals) -> finish_decode(Vals) when is_list(Vals) ->
finish_decode_arr(Vals, []); finish_decode_arr(Vals, []);
finish_decode({has_trailer, Value, Rest}) -> finish_decode({has_trailer, Value, Rest}) ->
{has_trailer, maybe_map(finish_decode(Value)), Rest};
{has_trailer, finish_decode(Value), Rest};
finish_decode(Val) -> finish_decode(Val) ->
maybe_map(Val). maybe_map(Val).

Ladataan…
Peruuta
Tallenna