mirror of
https://github.com/niusmallnan/steve.git
synced 2025-08-31 12:48:54 +00:00
Drop unused variable
This commit is contained in:
@@ -138,12 +138,6 @@ type Resources struct {
|
||||
func (a AccessListByVerb) Granted(verb string) (result map[string]Resources) {
|
||||
result = map[string]Resources{}
|
||||
|
||||
// if list, we need to check get also
|
||||
verbs := []string{verb}
|
||||
if verb == "list" {
|
||||
verbs = append(verbs, "get")
|
||||
}
|
||||
|
||||
for _, access := range a[verb] {
|
||||
resources := result[access.Namespace]
|
||||
if access.ResourceName == All {
|
||||
|
Reference in New Issue
Block a user