mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-17 22:32:26 +08:00
revort unnecessary change
This commit is contained in:
parent
ae39f917f0
commit
5ff500023f
1
.gitignore
vendored
1
.gitignore
vendored
@ -5,4 +5,3 @@ count.out
|
||||
test
|
||||
profile.out
|
||||
tmp.out
|
||||
.idea
|
||||
|
6
tree.go
6
tree.go
@ -611,7 +611,7 @@ walk: // Outer loop for walking the tree
|
||||
if rb[0] != 0 {
|
||||
// Old rune not finished
|
||||
idxc := rb[0]
|
||||
for i, c := range bytesconv.StringToBytes(n.indices) {
|
||||
for i, c := range []byte(n.indices) {
|
||||
if c == idxc {
|
||||
// continue with child node
|
||||
n = n.children[i]
|
||||
@ -643,7 +643,7 @@ walk: // Outer loop for walking the tree
|
||||
rb = shiftNRuneBytes(rb, off)
|
||||
|
||||
idxc := rb[0]
|
||||
for i, c := range bytesconv.StringToBytes(n.indices) {
|
||||
for i, c := range []byte(n.indices) {
|
||||
// Lowercase matches
|
||||
if c == idxc {
|
||||
// must use a recursive approach since both the
|
||||
@ -665,7 +665,7 @@ walk: // Outer loop for walking the tree
|
||||
rb = shiftNRuneBytes(rb, off)
|
||||
|
||||
idxc := rb[0]
|
||||
for i, c := range bytesconv.StringToBytes(n.indices) {
|
||||
for i, c := range []byte(n.indices) {
|
||||
// Uppercase matches
|
||||
if c == idxc {
|
||||
// Continue with child node
|
||||
|
Loading…
x
Reference in New Issue
Block a user