mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
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:
parent
713f577a27
commit
700d531a2c
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue