Merge pull request #484 from bobbyrullo/scope

scope: don't validate empty scopes
This commit is contained in:
Eric Chiang 2016-06-24 09:58:51 -07:00 committed by GitHub
commit e134d4d261

View file

@ -41,6 +41,9 @@ func (s Scopes) Contains(other Scopes) bool {
for _, scope := range other {
if _, ok := rScopes[scope]; !ok {
if scope == "" {
continue
}
return false
}
}