mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-09-19 22:40:15 +00:00
fixed loop on custom map
This commit is contained in:
@@ -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.
|
||||||
|
Reference in New Issue
Block a user