mirror of
https://github.com/processone/ejabberd.git
synced 2024-10-01 14:44:07 +02:00
Fix warning from last commit
This commit is contained in:
parent
418baf4fa6
commit
4b7c74415f
@ -374,7 +374,8 @@ format_args(Args, ArgsFormat) ->
|
|||||||
format_arg({array, Elements},
|
format_arg({array, Elements},
|
||||||
{list, {ElementDefName, ElementDefFormat}})
|
{list, {ElementDefName, ElementDefFormat}})
|
||||||
when is_list(Elements) ->
|
when is_list(Elements) ->
|
||||||
lists:map(fun ({struct, [{ElementDefName, ElementValue}]}) ->
|
lists:map(fun ({struct, [{ElementName, ElementValue}]}) when
|
||||||
|
ElementDefName == ElementName ->
|
||||||
format_arg(ElementValue, ElementDefFormat)
|
format_arg(ElementValue, ElementDefFormat)
|
||||||
end,
|
end,
|
||||||
Elements);
|
Elements);
|
||||||
|
Loading…
Reference in New Issue
Block a user