Apply gofmt -s

This commit is contained in:
Bjørn Erik Pedersen
2016-02-06 12:29:13 +01:00
parent eebf00f702
commit 318a984526
6 changed files with 7 additions and 9 deletions

View File

@@ -426,7 +426,7 @@ func TruncateWordsByRune(words []string, max int) (string, bool) {
} else if count+runeCount < max {
count += runeCount
} else {
for ri, _ := range word {
for ri := range word {
if count >= max {
truncatedWords := append(words[:index], word[:ri])
return strings.Join(truncatedWords, " "), true