Skip to content

Commit

Permalink
gofmt -s -w .
Browse files Browse the repository at this point in the history
  • Loading branch information
TYuan0816 committed Jan 27, 2024
1 parent e9ba650 commit d8fc2b2
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 9 deletions.
3 changes: 1 addition & 2 deletions internal/context/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ func Init() {
InitAusfContext(&ausfContext)
}


type NFContext interface {
AuthorizationCheck(token, serviceName string) error
}
Expand Down Expand Up @@ -185,4 +184,4 @@ func (c *AUSFContext) AuthorizationCheck(token, serviceName string) error {

logger.UtilLog.Debugf("AUSFContext::AuthorizationCheck: token[%s] serviceName[%s]\n", token, serviceName)
return oauth.VerifyOAuth(token, serviceName, c.NrfCertPem)
}
}
2 changes: 1 addition & 1 deletion internal/logger/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ var (
UeAuthLog *logrus.Entry
Auth5gAkaLog *logrus.Entry
AuthELog *logrus.Entry
UtilLog *logrus.Entry
UtilLog *logrus.Entry
)

func init() {
Expand Down
1 change: 0 additions & 1 deletion internal/sbi/consumer/nf_management.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package consumer

import (

"fmt"
"net/http"
"strings"
Expand Down
1 change: 0 additions & 1 deletion internal/sbi/producer/functions.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package producer

import (

"crypto/hmac"
"crypto/sha256"
"encoding/base64"
Expand Down
2 changes: 1 addition & 1 deletion internal/sbi/sorprotection/routers.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ package sorprotection
import (
"net/http"
"strings"

"github.com/gin-gonic/gin"

ausf_context "github.com/free5gc/ausf/internal/context"
Expand Down
4 changes: 2 additions & 2 deletions internal/util/router_auth_check.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

"github.com/gin-gonic/gin"

ausf_context "github.com/free5gc/ausf/internal/context"
ausf_context "github.com/free5gc/ausf/internal/context"
"github.com/free5gc/ausf/internal/logger"
)

Expand All @@ -30,4 +30,4 @@ func (rac *RouterAuthorizationCheck) Check(c *gin.Context, ausfContext ausf_cont
}

logger.UtilLog.Debugf("RouterAuthorizationCheck: Check Authorized")
}
}
2 changes: 1 addition & 1 deletion internal/util/router_auth_check_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,4 @@ func TestRouterAuthorizationCheck_Check(t *testing.T) {
}
})
}
}
}

0 comments on commit d8fc2b2

Please sign in to comment.