Skip to content

Commit

Permalink
Fix: fix linter error
Browse files Browse the repository at this point in the history
  • Loading branch information
andy89923 committed Jan 31, 2024
1 parent ffe3a8c commit 7e6b144
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion internal/util/router_auth_check.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ func NewRouterAuthorizationCheck(serviceName string) *RouterAuthorizationCheck {
func (rac *RouterAuthorizationCheck) Check(c *gin.Context, pcfContext nrf_context.NFContext) {
token := c.Request.Header.Get("Authorization")
err := pcfContext.AuthorizationCheck(token, rac.serviceName)

if err != nil {
logger.UtilLog.Debugf("RouterAuthorizationCheck::Check Unauthorized: %s", err)
c.JSON(http.StatusUnauthorized, gin.H{"error": err.Error()})
Expand Down

0 comments on commit 7e6b144

Please sign in to comment.