From 4f1958b21046595a49f60e95793f6adca4f8b444 Mon Sep 17 00:00:00 2001 From: Jarvis Carroll Date: Tue, 13 Jan 2026 01:19:29 +0000 Subject: [PATCH] use lists:unzip/1 Just a little thing I noticed could be improved. --- src/hz_aaci.erl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/hz_aaci.erl b/src/hz_aaci.erl index 2d21846..8e10795 100644 --- a/src/hz_aaci.erl +++ b/src/hz_aaci.erl @@ -732,8 +732,7 @@ coerce_map_to_record(O, N, MemberTypes, Map) -> end. coerce_record_to_map(O, N, MemberTypes, Tuple) -> - Names = [Name || {Name, _} <- MemberTypes], - Types = [Type || {_, Type} <- MemberTypes], + {Names, Types} = lists:unzip(MemberTypes), Terms = tuple_to_list(Tuple), % FIXME: We could go through and change the record_element paths into field % paths?