Remove unnecessary type conversions

This commit is contained in:
Bjørn Erik Pedersen
2016-03-14 20:31:31 +01:00
parent 3a82ae7114
commit 70739c972e
6 changed files with 9 additions and 9 deletions

View File

@@ -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
}
}