mirror of
https://github.com/sbt/sbt.git
synced 2026-09-08 11:13:23 +02:00
avoid deprecated /: and :\
use foldLeft and foldRight https://github.com/scala/scala/blob/v2.13.0/src/library/scala/collection/IterableOnce.scala#L682-L686
This commit is contained in:
@@ -131,7 +131,7 @@ object TestEvent {
|
||||
}
|
||||
|
||||
private[sbt] def overallResult(events: Seq[TEvent]): TestResult =
|
||||
((TestResult.Passed: TestResult) /: events) { (sum, event) =>
|
||||
events.foldLeft(TestResult.Passed: TestResult) { (sum, event) =>
|
||||
(sum, event.status) match {
|
||||
case (TestResult.Error, _) => TestResult.Error
|
||||
case (_, TStatus.Error) => TestResult.Error
|
||||
|
||||
Reference in New Issue
Block a user