fix: unreachable clause found by dialyzer

This commit is contained in:
Kjell Winblad 2024-04-14 11:22:23 +02:00
parent 6c0ee8bb01
commit ef9f8a8fdf
1 changed files with 2 additions and 4 deletions

View File

@ -44,11 +44,9 @@ format(
%%% Helper Functions
%%%-----------------------------------------------------------------
prepare_log_map(LogMap, PEncode) when is_map(LogMap) ->
prepare_log_map(LogMap, PEncode) ->
NewKeyValuePairs = [prepare_key_value(K, V, PEncode) || {K, V} <- maps:to_list(LogMap)],
maps:from_list(NewKeyValuePairs);
prepare_log_map(Term, _PEncode) ->
Term.
maps:from_list(NewKeyValuePairs).
prepare_key_value(payload = K, V, PEncode) ->
NewV =