Skip to content

Commit

Permalink
remove -1 check
Browse files Browse the repository at this point in the history
  • Loading branch information
icditwang committed Nov 15, 2019
1 parent a304e0b commit b895335
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions expression/builtin_string_vec.go
Original file line number Diff line number Diff line change
Expand Up @@ -1451,10 +1451,6 @@ func (b *builtinInstrBinarySig) vecEvalInt(input *chunk.Chunk, result *chunk.Col
strI := str.GetString(i)
substrI := substr.GetString(i)
idx := strings.Index(strI, substrI)
if idx == -1 {
res[i] = 0
continue
}
res[i] = int64(idx + 1)
}
return nil
Expand Down

0 comments on commit b895335

Please sign in to comment.