Skip to content

Commit

Permalink
strategy: simplify scope comparison logic
Browse files Browse the repository at this point in the history
Signed-off-by: Mohamedh Fazal <[email protected]>
  • Loading branch information
mfzl authored and arekkas committed Aug 24, 2016
1 parent 27ddd19 commit 7fb850e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions scope_strategy.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,9 @@ func HierarchicScopeStrategy(haystack []string, needle string) bool {
}

current := haystack[k]
if current == needle {
continue
if current != needle {
break
}

break
}
}

Expand Down

0 comments on commit 7fb850e

Please sign in to comment.