From 9487d9276a8debce622f0775b59649b393a93dac Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Mon, 22 Jan 2024 14:38:31 +0100 Subject: [PATCH] cosmetic: Fix trailing whitespace Change-Id: I9c894440818040151015283b0df7e1646110f5d5 --- include/gsup_protocol.hrl | 4 ++-- src/gsup_protocol.erl | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/gsup_protocol.hrl b/include/gsup_protocol.hrl index 2e9c9d3..5db534e 100644 --- a/include/gsup_protocol.hrl +++ b/include/gsup_protocol.hrl @@ -2,7 +2,7 @@ % License, v. 2.0. If a copy of the MPL was not distributed with this % file, You can obtain one at https://mozilla.org/MPL/2.0/. % (C) 2019 Andrey Velikiy -% (C) 2019 Fairwaves (edited) +% (C) 2019 Fairwaves (edited) % (C) 2019 Harald Welte -ifndef(GSUP_PROTOCOL). @@ -85,7 +85,7 @@ pdp_info_complete => true, pdp_info_list => ['GSUPPdpInfo'()], cancellation_type => integer(), - freeze_p_tmsi => true, + freeze_p_tmsi => true, msisdn => binary(), hlr_number => binary(), pdp_context_id => [integer()], diff --git a/src/gsup_protocol.erl b/src/gsup_protocol.erl index 5dd4bda..41e7dd6 100644 --- a/src/gsup_protocol.erl +++ b/src/gsup_protocol.erl @@ -2,7 +2,7 @@ % License, v. 2.0. If a copy of the MPL was not distributed with this % file, You can obtain one at https://mozilla.org/MPL/2.0/. % (C) 2019 Andrey Velikiy -% (C) 2019 Fairwaves (edited) +% (C) 2019 Fairwaves (edited) -module(gsup_protocol). @@ -34,7 +34,7 @@ decode(<>) -> true -> GSUPMessage; false -> error({mandatory_ie_missing, MsgTypeAtom, Mandatory -- maps:keys(GSUPMessage)}) end; - _ -> + _ -> error({unknown_gsup_msg_type, MsgType}) end. @@ -299,13 +299,13 @@ encode(MsgType, GSUPMessage) when is_integer(MsgType), is_map(GSUPMessage), MsgT Possible = Mandatory ++ maps:get(optional, Map, []) ++ ?OPTIONAL_DEFAULT, case {maps:size(maps:with(Mandatory, GSUPMessage)) == length(Mandatory), maps:size(maps:without(Possible, GSUPMessage)) == 0} of - {true, true} -> + {true, true} -> Tail = encode_ie(GSUPMessage, <<>>), <>; {false, _} -> error({mandatory_ie_missing, MsgTypeAtom, Mandatory -- maps:keys(GSUPMessage)}); {_, false} -> error({ie_not_expected, MsgTypeAtom, maps:keys(GSUPMessage) -- Possible}) end; - _ -> + _ -> error({unknown_gsup_msg_type, MsgType}) end.