Skip to content

Commit 570e8e6

Browse files
author
Peter Empen
committed
scalafmt
1 parent 9752665 commit 570e8e6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

core/src/main/scala/scalax/collection/GraphTraversalImpl.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -663,8 +663,8 @@ trait GraphTraversalImpl[N, E <: Edge[N]] extends GraphTraversal[N, E] with Trav
663663
i
664664
}
665665

666-
@inline override val size: Int = stack.size - skipCount + prefix.fold(0)(_ => 1) + 1
667-
@inline override val last: NodeT = postfix.node
666+
@inline override val size: Int = stack.size - skipCount + prefix.fold(0)(_ => 1) + 1
667+
@inline override val last: NodeT = postfix.node
668668

669669
private[GraphTraversalImpl] def source: Iterable[S] = new AbstractIterable[S] {
670670
override def iterator = {

core/src/test/scala/scalax/collection/CycleSpec.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ private class Cycle[CC[N, E <: Edge[N]] <: AnyGraph[N, E] with GraphLike[N, E, C
131131
val g1 = factory(1 ~> 2, 2 ~> 1).asAnyGraph
132132
(g1 get 1 findCycle, g1 get 2 findCycle) match {
133133
case (Some(c1), Some(c2)) =>
134-
c1.startNode shouldNot be (c2.startNode)
134+
c1.startNode shouldNot be(c2.startNode)
135135
c1 sameAs c2 shouldBe true
136136
case (x, y) => fail(s"Cycles expected, got ($x, $y ) instead.")
137137
}

0 commit comments

Comments
 (0)