From 9a3342ef4997a204d05f826b9302c60e8dfadf07 Mon Sep 17 00:00:00 2001 From: ubuntu Date: Wed, 17 Apr 2024 16:35:29 +0000 Subject: [PATCH] fix: fix length --- .golangci.yml | 2 +- internal/packet/ngapPacket/packet.go | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 02ed57d..41370c8 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -176,7 +176,7 @@ linters-settings: lll: # max line length, lines longer will be reported. Default is 120. # '\t' is counted as 1 character by default, and can be changed with the tab-width option - line-length: 120 + line-length: 140 # tab width in spaces. Default to 1. tab-width: 1 maligned: diff --git a/internal/packet/ngapPacket/packet.go b/internal/packet/ngapPacket/packet.go index 9700b3f..5c486bb 100644 --- a/internal/packet/ngapPacket/packet.go +++ b/internal/packet/ngapPacket/packet.go @@ -132,8 +132,11 @@ func GetPDUSessionResourceReleaseResponse(amfUeNgapID int64, ranUeNgapID int64) func GetPathSwitchRequest(amfUeNgapID int64, ranUeNgapID int64) ([]byte, error) { message := BuildPathSwitchRequest(amfUeNgapID, ranUeNgapID) - message.InitiatingMessage.Value.PathSwitchRequest.ProtocolIEs.List = - message.InitiatingMessage.Value.PathSwitchRequest.ProtocolIEs.List[0:5] + message.InitiatingMessage.Value.PathSwitchRequest.ProtocolIEs.List = message. + InitiatingMessage. + Value. + PathSwitchRequest. + ProtocolIEs.List[0:5] return ngap.Encoder(message) }