We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8aa67d7 commit 7a6c836Copy full SHA for 7a6c836
src/library/scala/sys/process/ProcessImpl.scala
@@ -193,7 +193,7 @@ private[process] trait ProcessImpl {
193
protected[this] val source = new SyncVar[Option[InputStream]]
194
override final def run(): Unit = {
195
@tailrec def go(): Unit =
196
- source.take match {
+ source.take() match {
197
case Some(in) => runloop(in, pipe) ; go()
198
case None =>
199
}
@@ -216,7 +216,7 @@ private[process] trait ProcessImpl {
216
protected[this] val sink = new SyncVar[Option[OutputStream]]
217
override def run(): Unit = {
218
219
- sink.take match {
+ sink.take() match {
220
case Some(out) => runloop(pipe, out) ; go()
221
222
0 commit comments