Skip to content

Commit

Permalink
lint (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
jf-tech authored Aug 4, 2021
1 parent 6f1a001 commit 99ea835
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ios/bytesReplacingReader_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ func (r *multiTokenReplacer) GetSizingHints() (int, int, float64) {
maxSearchLen := 0
maxReplaceLen := 0
maxRatio := float64(-1)
for i, _ := range r.searches {
for i := range r.searches {
searchLen := len(r.searches[i])
replaceLen := len(r.replaces[i])
if searchLen > maxSearchLen {
Expand All @@ -176,7 +176,7 @@ func (r *multiTokenReplacer) GetSizingHints() (int, int, float64) {
}

func (r *multiTokenReplacer) Index(buf []byte) (int, []byte, []byte) {
for i, _ := range r.searches {
for i := range r.searches {
index := bytes.Index(buf, r.searches[i])
if index >= 0 {
return index, r.searches[i], r.replaces[i]
Expand Down

0 comments on commit 99ea835

Please sign in to comment.