Skip to content

Commit 88b3d04

Browse files
committed
Remove unreachable code in match
1 parent b707fe4 commit 88b3d04

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

match.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -311,11 +311,6 @@ MATCH:
311311
return false, nil
312312
}
313313

314-
if nameIdx < nameLen {
315-
// we reached the end of `pattern` before the end of `name`
316-
return false, nil
317-
}
318-
319314
// we've reached the end of `name`; we've successfully matched if we've also
320315
// reached the end of `pattern`, or if the rest of `pattern` can match a
321316
// zero-length string

0 commit comments

Comments
 (0)