manual adjustments before scalafmt

* fix formatting error

* reversePrepend instead of reverse_:::
  * because it is causing trouble for AvoidInfix formatting

* prepare for AvoidInfix

* fix try-catch
This commit is contained in:
Patrik Nordwall 2019-02-09 15:17:14 +01:00
parent 5c96a5f556
commit 0f40491d42
15 changed files with 29 additions and 25 deletions

View file

@ -250,7 +250,7 @@ private[akka] trait SubscriberManagement[T] extends ResizableMultiReaderRingBuff
private def unregisterSubscriptionInternal(subscription: S): Unit = {
@tailrec def removeFrom(remaining: Subscriptions, result: Subscriptions = Nil): Subscriptions =
remaining match {
case head :: tail => if (head eq subscription) tail reverse_::: result else removeFrom(tail, head :: result)
case head :: tail => if (head eq subscription) result.reverse_:::(tail) else removeFrom(tail, head :: result)
case _ => throw new IllegalStateException("Subscription to unregister not found")
}
if (subscription.active) {