Skip to content

Commit

Permalink
Merge branch 'master' into TELCO-864-fix-non-functional-linting-warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
gab-arrobo authored Nov 22, 2023
2 parents 4e713ae + 66f1905 commit 5025308
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 15 deletions.
20 changes: 10 additions & 10 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -218,28 +218,28 @@ linters-settings:

linters:
enable:
- gofmt
# - gofmt
- govet
- errcheck
- staticcheck
- unused
- gosimple
- ineffassign
# - staticcheck
# - unused
# - gosimple
# - ineffassign
- typecheck
# Additional
- lll
# - lll
- godox
#- gomnd
#- goconst
# - gocognit
# - maligned
# - nestif
# - gomodguard
- nakedret
- gci
# - nakedret
# - gci
- misspell
- gofumpt
- whitespace
# - gofumpt
# - whitespace
- unconvert
- predeclared
- noctx
Expand Down
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ FROM golang:1.21.3-bookworm AS builder

LABEL maintainer="ONF <[email protected]>"

#RUN apt remove cmdtest yarn
RUN apt-get update && apt-get -y install apt-transport-https ca-certificates
RUN apt-get update
RUN apt-get -y install gcc cmake autoconf libtool pkg-config libmnl-dev libyaml-dev
Expand Down
6 changes: 2 additions & 4 deletions producer/subscriber_data_management.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,11 +154,9 @@ func getIdTranslationResultProcedure(gpsi string) (response *models.IdTranslatio
}()

if res.StatusCode == http.StatusOK {
idList := udm_context.UDM_Self().GpsiSupiList
idList = idTranslationResultResp
if idList.SupiList != nil {
if idTranslationResultResp.SupiList != nil {
// GetCorrespondingSupi get corresponding Supi(here IMSI) matching the given Gpsi from the queried SUPI list from UDR
idTranslationResult.Supi = udm_context.GetCorrespondingSupi(idList)
idTranslationResult.Supi = udm_context.GetCorrespondingSupi(idTranslationResultResp)
idTranslationResult.Gpsi = gpsi

return &idTranslationResult, nil
Expand Down
1 change: 1 addition & 0 deletions producer/ue_context_management.go
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,7 @@ func UpdateAmfNon3gppAccessProcedure(request models.AmfNon3GppAccessRegistration
Status: http.StatusForbidden,
Cause: "INVALID_GUAMI",
}
return problemDetails
}

var patchItemTmp models.PatchItem
Expand Down

0 comments on commit 5025308

Please sign in to comment.