Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
dorsha committed Dec 18, 2023
1 parent d5bf78d commit 67aa31d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions descope/internal/auth/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ func (auth *authenticationService) GetMatchedPermissions(ctx context.Context, to
return auth.GetMatchedTenantPermissions(ctx, token, "", permissions)
}

func (auth *authenticationService) ValidateTenantPermissions(ctx context.Context, token *descope.Token, tenant string, permissions []string) bool {
func (auth *authenticationService) ValidateTenantPermissions(_ context.Context, token *descope.Token, tenant string, permissions []string) bool {
if tenant != "" && !isAssociatedWithTenant(token, tenant) {
return false
}
Expand All @@ -363,7 +363,7 @@ func (auth *authenticationService) ValidateTenantPermissions(ctx context.Context
return true
}

func (auth *authenticationService) GetMatchedTenantPermissions(ctx context.Context, token *descope.Token, tenant string, permissions []string) []string {
func (auth *authenticationService) GetMatchedTenantPermissions(_ context.Context, token *descope.Token, tenant string, permissions []string) []string {
if tenant != "" && !isAssociatedWithTenant(token, tenant) {
return []string{}
}
Expand Down

0 comments on commit 67aa31d

Please sign in to comment.