fixed loop on custom map
This commit is contained in:
parent
a61c19dddc
commit
37a5332951
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ type Capability map[string]bool
|
||||||
|
|
||||||
// Get the capability value from the map.
|
// Get the capability value from the map.
|
||||||
func (c Capability) Get(key string) bool {
|
func (c Capability) Get(key string) bool {
|
||||||
return c.Get(key)
|
return c[key]
|
||||||
}
|
}
|
||||||
|
|
||||||
// Sets the capability value in the map.
|
// Sets the capability value in the map.
|
||||||
|
|
Loading…
Reference in a new issue