vendor: Update github.com/gobwas/glob (fixes #3174)

GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3207
This commit is contained in:
Jakob Borg
2016-05-28 04:43:54 +00:00
parent c2dc4a8e06
commit 4453236949
30 changed files with 255 additions and 3396 deletions

View File

@@ -63,16 +63,15 @@ func (self AnyOf) Len() (l int) {
l = -1
for _, m := range self.Matchers {
ml := m.Len()
if ml == -1 {
return -1
}
if l == -1 {
switch {
case l == -1:
l = ml
continue
}
if l != ml {
case ml == -1:
return -1
case l != ml:
return -1
}
}