Skip to content

Commit

Permalink
refactor: Improve test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
romshark committed Jan 16, 2022
1 parent b004bc2 commit 0639be8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/strfind/strfind.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ func IndexTermBytes(s []byte, i int) int {
}

func LastIndexUnescaped(path []byte, b byte) (i int) {
MAIN:
for i = len(path); i >= 0; {
path = path[:i]
i = bytes.LastIndexByte(path, b)
Expand All @@ -63,7 +64,7 @@ func LastIndexUnescaped(path []byte, b byte) (i int) {
i = z
break
}
return
break MAIN
}
}
}
Expand Down

0 comments on commit 0639be8

Please sign in to comment.