mirror of
https://github.com/psforever/PSF-LoginServer.git
synced 2026-01-19 18:44:45 +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
|
|
@ -242,7 +242,7 @@ object Support {
|
|||
individualThreatEstimates.filter(_._1 < 10)
|
||||
} else {
|
||||
individualThreatEstimates.filter(_._1 > 10)
|
||||
}).maxBy(_._2)._1,
|
||||
}).maxByOption(_._2).map(_._1).getOrElse(0),
|
||||
defaultValue
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue