mirror of
https://github.com/psforever/PSF-LoginServer.git
synced 2026-07-16 08:55:18 +00:00
replacing maxBy with maxByOption and then resolving maxBy the long way with appropriate fallback value
This commit is contained in:
parent
02c238181e
commit
e5d5fda554
1 changed files with 1 additions and 1 deletions
|
|
@ -242,7 +242,7 @@ object Support {
|
||||||
individualThreatEstimates.filter(_._1 < 10)
|
individualThreatEstimates.filter(_._1 < 10)
|
||||||
} else {
|
} else {
|
||||||
individualThreatEstimates.filter(_._1 > 10)
|
individualThreatEstimates.filter(_._1 > 10)
|
||||||
}).maxBy(_._2)._1,
|
}).maxByOption(_._2).map(_._1).getOrElse(0),
|
||||||
defaultValue
|
defaultValue
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue