mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-18 21:11:19 +02:00
Remove unnecessary type conversions
This commit is contained in:
@@ -411,12 +411,12 @@ func (p *Page) analyzePage() {
|
||||
p.WordCount = len(p.PlainWords())
|
||||
}
|
||||
|
||||
p.FuzzyWordCount = int((p.WordCount+100)/100) * 100
|
||||
p.FuzzyWordCount = (p.WordCount + 100) / 100 * 100
|
||||
|
||||
if p.isCJKLanguage {
|
||||
p.ReadingTime = int((p.WordCount + 500) / 501)
|
||||
p.ReadingTime = (p.WordCount + 500) / 501
|
||||
} else {
|
||||
p.ReadingTime = int((p.WordCount + 212) / 213)
|
||||
p.ReadingTime = (p.WordCount + 212) / 213
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user