Skip to content

Commit

Permalink
fix: fix length
Browse files Browse the repository at this point in the history
  • Loading branch information
a3828162 committed Apr 17, 2024
1 parent 011ad59 commit 9a3342e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
7 changes: 5 additions & 2 deletions internal/packet/ngapPacket/packet.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 9a3342e

Please sign in to comment.