helpers: Use iterate operator by int in Emojify

Fix golint warning: helpers/emoji.go:56:4: should replace start += 1
with start++

See #2014
This commit is contained in:
bogem 2016-11-21 22:57:38 +01:00 committed by Bjørn Erik Pedersen
parent 713f577a27
commit 700d531a2c

View file

@ -53,7 +53,7 @@ func Emojify(source []byte) []byte {
nextWordDelim := bytes.Index(source[j:upper], emojiWordDelim)
if endEmoji < 0 {
start += 1
start++
} else if endEmoji == 0 || (nextWordDelim != -1 && nextWordDelim < endEmoji) {
start += endEmoji + 1
} else {