= - Minor cleanups, will get an appropriate commit message soon

This commit is contained in:
Viktor Klang 2016-02-15 10:37:19 +01:00
parent e1afb62cab
commit 365e6243b3
9 changed files with 60 additions and 46 deletions

View file

@ -11,8 +11,8 @@ import akka.stream.impl.StreamLayout.Module
*/
private[stream] trait FlowModule[In, Out, Mat] extends StreamLayout.Module {
override def replaceShape(s: Shape) =
if (s == shape) this
else throw new UnsupportedOperationException("cannot replace the shape of a FlowModule")
if (s != shape) throw new UnsupportedOperationException("cannot replace the shape of a FlowModule")
else this
val inPort = Inlet[In]("Flow.in")
val outPort = Outlet[Out]("Flow.out")