mirror of
https://github.com/tinode/chat.git
synced 2025-03-14 10:05:07 +00:00
refactor: #904 should reset iterator only once
This commit is contained in:
@ -259,8 +259,6 @@ func sliceGraphemeClusters(g *uniseg.Graphemes, start, end int) *uniseg.Grapheme
|
||||
|
||||
}
|
||||
|
||||
g.Reset()
|
||||
|
||||
return uniseg.NewGraphemes(output)
|
||||
}
|
||||
|
||||
@ -287,8 +285,6 @@ func getGraphemeLength(g *uniseg.Graphemes) int {
|
||||
output++
|
||||
}
|
||||
|
||||
g.Reset()
|
||||
|
||||
return output
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user