gobwas / glob

Go glob
MIT License
957 stars 64 forks source link

Unreachable line in EveryOf.Len() #42

Open ondrejbudai opened 4 years ago

ondrejbudai commented 4 years ago

This following line is unreachable:

https://github.com/gobwas/glob/blob/e7a84e9525fe90abcda167b604e483cc959ad4aa/match/every_of.go#L23

l is by default 0 and its value can only change inside the if l > 0 block.