From 2f3f122ad600396f090eb0e73483f8dc9681e7c3 Mon Sep 17 00:00:00 2001 From: Edmund Higham Date: Thu, 19 Sep 2024 17:11:08 -0400 Subject: [PATCH] i miss hm type system --- hail/src/main/scala/is/hail/backend/BackendRpc.scala | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/hail/src/main/scala/is/hail/backend/BackendRpc.scala b/hail/src/main/scala/is/hail/backend/BackendRpc.scala index ea9bff7d5656..33cecbbb0fed 100644 --- a/hail/src/main/scala/is/hail/backend/BackendRpc.scala +++ b/hail/src/main/scala/is/hail/backend/BackendRpc.scala @@ -12,7 +12,6 @@ import is.hail.utils.{using, ExecutionTimer} import is.hail.utils.ExecutionTimer.Timings import is.hail.variant.ReferenceGenome -import scala.language.existentials import scala.util.control.NonFatal import java.io.ByteArrayOutputStream @@ -117,7 +116,7 @@ trait BackendRpc { val ir = IRParser.parse_value_ir(ctx, s) val res = ctx.backend.execute(ctx, ir) res match { - case Left(_) => Array() + case Left(_) => Array.empty[Byte] case Right((pt, off)) => using(new ByteArrayOutputStream()) { os => Backend.encodeToOutputStream(ctx, pt, off, bufferSpec, os) @@ -163,7 +162,7 @@ trait BackendRpc { } } - Write.result(env)(result.asInstanceOf[Array[Byte]]) + Write.result(env)(result) Write.timings(env)(timings) } catch { case NonFatal(error) => Write.error(env)(error)