Skip to content

Commit 7a6c836

Browse files
committed
ProcessImpl: add missing () when calling take()
1 parent 8aa67d7 commit 7a6c836

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/library/scala/sys/process/ProcessImpl.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ private[process] trait ProcessImpl {
193193
protected[this] val source = new SyncVar[Option[InputStream]]
194194
override final def run(): Unit = {
195195
@tailrec def go(): Unit =
196-
source.take match {
196+
source.take() match {
197197
case Some(in) => runloop(in, pipe) ; go()
198198
case None =>
199199
}
@@ -216,7 +216,7 @@ private[process] trait ProcessImpl {
216216
protected[this] val sink = new SyncVar[Option[OutputStream]]
217217
override def run(): Unit = {
218218
@tailrec def go(): Unit =
219-
sink.take match {
219+
sink.take() match {
220220
case Some(out) => runloop(pipe, out) ; go()
221221
case None =>
222222
}

0 commit comments

Comments
 (0)