dexter has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/onomondo-eim/+/42959?usp=email )


Change subject: esipa_asn1_handler_utils: use maps:find
......................................................................

esipa_asn1_handler_utils: use maps:find

We can replace maps:is_key and maps:get with a single maps:find call.

Change-Id: I6cc151deef161f3ca4726e6b81ae1f5cc80ad184
Related: SYS#8100
---
M src/esipa_asn1_handler_utils.erl
1 file changed, 3 insertions(+), 3 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/onomondo-eim refs/changes/59/42959/1

diff --git a/src/esipa_asn1_handler_utils.erl b/src/esipa_asn1_handler_utils.erl
index ac7d6f0..2d537fd 100644
--- a/src/esipa_asn1_handler_utils.erl
+++ b/src/esipa_asn1_handler_utils.erl
@@ -26,9 +26,9 @@

 process_euiccPackageResult(Pid, EuiccPackageResult, EsipaReq, TransactionId) ->
     WorkBind = fun(Map) ->
-        case maps:is_key(eimTransactionId, Map) of
-            true ->
-                mnesia_db_work:bind(Pid, maps:get(eimTransactionId, Map));
+        case maps:find(eimTransactionId, Map) of
+            {ok, Value} ->
+                mnesia_db_work:bind(Pid, Value);
             _ ->
                 ok
         end

--
To view, visit https://gerrit.osmocom.org/c/onomondo-eim/+/42959?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings?usp=email

Gerrit-MessageType: newchange
Gerrit-Project: onomondo-eim
Gerrit-Branch: master
Gerrit-Change-Id: I6cc151deef161f3ca4726e6b81ae1f5cc80ad184
Gerrit-Change-Number: 42959
Gerrit-PatchSet: 1
Gerrit-Owner: dexter <[email protected]>

Reply via email to