Commit 89a987bf authored by StudyNick's avatar StudyNick

variable 'controller' collides with imported package name

parent 586fd337
......@@ -243,14 +243,14 @@ func (c ControllerContext) IsControllerEnabled(name string) bool {
func IsControllerEnabled(name string, disabledByDefaultControllers sets.String, controllers ...string) bool {
hasStar := false
for _, controller := range controllers {
if controller == name {
for _, ctrl := range controllers {
if ctrl == name {
return true
}
if controller == "-"+name {
if ctrl == "-"+name {
return false
}
if controller == "*" {
if ctrl == "*" {
hasStar = true
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment