From 946344b3797767319674828e7d2122104b412c68 Mon Sep 17 00:00:00 2001 From: zhongwencool Date: Thu, 4 May 2023 09:51:12 +0800 Subject: [PATCH] chore: simply maybe_mkrich/3 Co-authored-by: Zaiming (Stone) Shi --- src/hocon_tconf.erl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/hocon_tconf.erl b/src/hocon_tconf.erl index 46e3122..b875d95 100644 --- a/src/hocon_tconf.erl +++ b/src/hocon_tconf.erl @@ -1031,9 +1031,8 @@ maybe_mkrich(_, undefined, _Box) -> undefined; maybe_mkrich(#{format := map}, Value, _Box) -> Value; -maybe_mkrich(#{format := richmap} = Opts, Value, Box) -> - RichValue = unbox(mkrich(Value, Box)), - boxit(Opts, RichValue, Box). +maybe_mkrich(#{format := richmap}, Value, Box) -> + mkrich(Value, Box). mkrich(Arr, Box) when is_list(Arr) -> NewArr = [mkrich(I, Box) || I <- Arr],