Skip to content

Commit

Permalink
feat: fixed linter error
Browse files Browse the repository at this point in the history
Signed-off-by: Soumya Ghosh Dastidar <[email protected]>
  • Loading branch information
gdsoumya committed Jul 6, 2023
1 parent 56c89ca commit e103a6a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/cache/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -775,9 +775,10 @@ func (c *clusterCache) checkPermission(ctx context.Context, reviewInterface auth
}
if resp != nil && resp.Status.Allowed {
return true, nil
} else {
// unsupported, remove from watch list
return false, nil
}
// unsupported, remove from watch list
return false, nil
}
}
// checkPermission follows the same logic of determining namespace/cluster resource as the processApi function
Expand Down

0 comments on commit e103a6a

Please sign in to comment.