Skip to content

Commit

Permalink
fix: remove unnecessary len (#424)
Browse files Browse the repository at this point in the history
Remove extra len call on target variable
  • Loading branch information
shahinv committed Oct 24, 2021
1 parent 5b0d970 commit b87d35c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builtin_string.go
Expand Up @@ -184,7 +184,7 @@ func builtinString_findAndReplaceString(input []byte, lastIndex int, match []int
case '`':
return target[:match[0]]
case '\'':
return target[match[1]:len(target)]
return target[match[1]:]
}
matchNumberParse, err := strconv.ParseInt(string(part[1:]), 10, 64)
if err != nil {
Expand Down

0 comments on commit b87d35c

Please sign in to comment.