Skip to content

Commit 99ea835

Browse files
authored
lint (#20)
1 parent 6f1a001 commit 99ea835

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ios/bytesReplacingReader_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ func (r *multiTokenReplacer) GetSizingHints() (int, int, float64) {
156156
maxSearchLen := 0
157157
maxReplaceLen := 0
158158
maxRatio := float64(-1)
159-
for i, _ := range r.searches {
159+
for i := range r.searches {
160160
searchLen := len(r.searches[i])
161161
replaceLen := len(r.replaces[i])
162162
if searchLen > maxSearchLen {
@@ -176,7 +176,7 @@ func (r *multiTokenReplacer) GetSizingHints() (int, int, float64) {
176176
}
177177

178178
func (r *multiTokenReplacer) Index(buf []byte) (int, []byte, []byte) {
179-
for i, _ := range r.searches {
179+
for i := range r.searches {
180180
index := bytes.Index(buf, r.searches[i])
181181
if index >= 0 {
182182
return index, r.searches[i], r.replaces[i]

0 commit comments

Comments
 (0)