fix golint warnings

This commit is contained in:
kevin
2020-08-19 16:00:55 +08:00
parent 2ebb5b6b58
commit 9e14820698
14 changed files with 44 additions and 36 deletions

View File

@@ -63,11 +63,6 @@ func (r *replacer) Replace(text string) string {
i = j - 1
builder.WriteString(r.mapping[string(chars[start:end])])
} else {
if j < size {
end = j + 1
} else {
end = size
}
builder.WriteRune(chars[i])
}
start = -1