[S] Change in onomondo-eim[master]: esipa_asn1_handler: replace handle_asn1_notificationList
dexter has submitted this change. ( https://gerrit.osmocom.org/c/onomondo-eim/+/42950?usp=email ) Change subject: esipa_asn1_handler: replace handle_asn1_notificationList ...................................................................... esipa_asn1_handler: replace handle_asn1_notificationList The helper function handle_asn1_notificationList can also be described using the comprehension syntax. Change-Id: Ia95f56998b4f7a8b0f9fce727d82dedc942e5aeb Related: SYS#8100 --- M src/esipa_asn1_handler.erl 1 file changed, 6 insertions(+), 9 deletions(-) Approvals: Jenkins Builder: Verified dexter: Looks good to me, approved laforge: Looks good to me, but someone else must approve diff --git a/src/esipa_asn1_handler.erl b/src/esipa_asn1_handler.erl index 1815499..8b9300a 100644 --- a/src/esipa_asn1_handler.erl +++ b/src/esipa_asn1_handler.erl @@ -9,14 +9,6 @@ -export([handle_asn1/2]). -% Helper function to send out a list of notifications -handle_asn1_notificationList(_Pid, []) -> - ok; -handle_asn1_notificationList(Pid, NotificationList) -> - [PendingNotification | NotificationListTail] = NotificationList, - handle_asn1(Pid, {handleNotificationEsipa, {pendingNotification, PendingNotification}}), - handle_asn1_notificationList(Pid, NotificationListTail). - %GSMA SGP.32, section 6.3.2.1 handle_asn1(Pid, {initiateAuthenticationRequestEsipa, EsipaReq}) -> EimTransactionId = maps:get(eimTransactionId, EsipaReq, none), @@ -384,7 +376,12 @@ ), % then forward the notifications in the included notification list NotificationList = maps:get(notificationList, EPRAndNotifications), - handle_asn1_notificationList(Pid, NotificationList); + [ + handle_asn1( + Pid, {handleNotificationEsipa, {pendingNotification, PendingNotification}} + ) + || PendingNotification <- NotificationList + ]; {ipaEuiccDataResponse, IpaEuiccDataResponse} -> % drive-by store the eUICC public key so that we can use it later to sign PSMOs or eCOs {EidValue, _, _} = mnesia_db_work:pickup(Pid, none), -- To view, visit https://gerrit.osmocom.org/c/onomondo-eim/+/42950?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: merged Gerrit-Project: onomondo-eim Gerrit-Branch: master Gerrit-Change-Id: Ia95f56998b4f7a8b0f9fce727d82dedc942e5aeb Gerrit-Change-Number: 42950 Gerrit-PatchSet: 13 Gerrit-Owner: dexter <pmaier@sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: dexter <pmaier@sysmocom.de> Gerrit-Reviewer: laforge <laforge@osmocom.org> Gerrit-Reviewer: lynxis lazus <lynxis@fe80.eu>
participants (1)
-
dexter