remove superfluous abs

ratingRegulator
Thibault Duplessis 2019-04-20 14:20:54 +07:00
parent 0617a76e23
commit 6bd36d6a44
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ case object RatingRegulator {
(after.nb == before.nb + 1) && // after playing one game
(after.glicko.rating > before.glicko.rating) // and gaining rating
}) {
val diff = (after.glicko.rating - before.glicko.rating).abs
val diff = after.glicko.rating - before.glicko.rating
val extra = diff * factor.value
lila.mon.rating.regulator.micropoints(perfType.key)((extra * 1000 * 1000).toLong)
after.copy(