Skip to content

Commit

Permalink
chore: simply maybe_mkrich/3
Browse files Browse the repository at this point in the history
Co-authored-by: Zaiming (Stone) Shi <[email protected]>
  • Loading branch information
zhongwencool and zmstone committed May 4, 2023
1 parent 10c5147 commit 946344b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/hocon_tconf.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down

0 comments on commit 946344b

Please sign in to comment.