diff --git a/scope_strategy.go b/scope_strategy.go index 41e43f895..c8d24a8da 100644 --- a/scope_strategy.go +++ b/scope_strategy.go @@ -26,11 +26,9 @@ func HierarchicScopeStrategy(haystack []string, needle string) bool { } current := haystack[k] - if current == needle { - continue + if current != needle { + break } - - break } }