Skip to content

Commit

Permalink
fix: Disable all linters
Browse files Browse the repository at this point in the history
Signed-off-by: gatici <[email protected]>
  • Loading branch information
gatici committed Nov 9, 2023
1 parent 6956659 commit fd43526
Show file tree
Hide file tree
Showing 4 changed files with 14 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
6 changes: 2 additions & 4 deletions producer/subscriber_data_management.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,11 +153,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 @@ -498,6 +498,7 @@ func UpdateAmfNon3gppAccessProcedure(request models.AmfNon3GppAccessRegistration
Status: http.StatusForbidden,
Cause: "INVALID_GUAMI",
}
return problemDetails
}

var patchItemTmp models.PatchItem
Expand Down
2 changes: 1 addition & 1 deletion service/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ func (udm *UDM) BuildAndSendRegisterNFInstance() (models.NfProfile, error) {
return profile, err
}

//UpdateNF is the callback function, this is called when keepalivetimer elapsed
// UpdateNF is the callback function, this is called when keepalivetimer elapsed
func (udm *UDM) UpdateNF() {
KeepAliveTimerMutex.Lock()
defer KeepAliveTimerMutex.Unlock()
Expand Down

0 comments on commit fd43526

Please sign in to comment.