Skip to content

Commit

Permalink
Apply gofmt to two files and remove deprecated lints (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
gab-arrobo authored Jan 23, 2024
1 parent 1abb3b0 commit 9c699f8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
5 changes: 1 addition & 4 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright 2019 free5GC.org
#
# SPDX-License-Identifier: Apache-2.0
#
#

# This file contains all available configuration options
# with their default values.
Expand Down Expand Up @@ -221,10 +221,7 @@ linters:
- staticcheck
- unused
- gosimple
- structcheck
- varcheck
- ineffassign
- deadcode
- typecheck
# Additional
- lll
Expand Down
2 changes: 1 addition & 1 deletion nasConvert/UPUInfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"github.com/omec-project/openapi/models"
)

// subclause 9.11.3.53A in 3GPP TS 24.501.
// subclause 9.11.3.53A in 3GPP TS 24.501.
func UpuInfoToNas(upuInfo models.UpuInfo) []uint8 {
var buf []uint8

Expand Down
5 changes: 3 additions & 2 deletions security/counter.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ package security

/*
TS 33.501 6.4.3.1
COUNT (32 bits) := 0x00 || NAS COUNT (24 bits)
NAS COUNT (24 bits) := NAS OVERFLOW (16 bits) || NAS SQN (8 bits)
COUNT (32 bits) := 0x00 || NAS COUNT (24 bits)
NAS COUNT (24 bits) := NAS OVERFLOW (16 bits) || NAS SQN (8 bits)
*/
type Count struct {
count uint32
Expand Down

0 comments on commit 9c699f8

Please sign in to comment.