Skip to content

Commit 08bdb71

Browse files
a3828162andy89923
authored andcommitted
Fix: fix linter error
1 parent 1ecb75a commit 08bdb71

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

internal/sbi/producer/parameter_provision.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"github.com/free5gc/util/httpwrapper"
1111
)
1212

13-
//const serviceName string = string(models.ServiceName_NUDR_DR)
13+
// const serviceName string = string(models.ServiceName_NUDR_DR)
1414

1515
func HandleUpdateRequest(request *httpwrapper.Request) *httpwrapper.Response {
1616
// step 1: log

internal/sbi/producer/ue_context_management.go

+6-4
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,12 @@ import (
1818
"github.com/free5gc/util/httpwrapper"
1919
)
2020

21-
const serviceNameNudrDr string = string(models.ServiceName_NUDR_DR)
22-
const serviceNameNudmSdm string = string(models.ServiceName_NUDM_SDM)
23-
const nfTypeUDR models.NfType = models.NfType_UDR
24-
const nfTypeUDM models.NfType = models.NfType_UDM
21+
const (
22+
serviceNameNudrDr string = string(models.ServiceName_NUDR_DR)
23+
serviceNameNudmSdm string = string(models.ServiceName_NUDM_SDM)
24+
nfTypeUDR models.NfType = models.NfType_UDR
25+
nfTypeUDM models.NfType = models.NfType_UDM
26+
)
2527

2628
func createUDMClientToUDR(id string) (*Nudr_DataRepository.APIClient, error) {
2729
uri := getUdrURI(id)

internal/util/router_auth_check.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@ package util
33
import (
44
"net/http"
55

6-
"github.com/free5gc/udm/internal/logger"
7-
udm_context "github.com/free5gc/udm/internal/context"
86
"github.com/gin-gonic/gin"
7+
8+
udm_context "github.com/free5gc/udm/internal/context"
9+
"github.com/free5gc/udm/internal/logger"
910
)
1011

1112
type NFContextGetter func() *udm_context.UDMContext

0 commit comments

Comments
 (0)