Skip to content

Commit

Permalink
i miss hm type system
Browse files Browse the repository at this point in the history
  • Loading branch information
ehigham committed Oct 25, 2024
1 parent f028a22 commit 2c95935
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions hail/src/main/scala/is/hail/backend/BackendRpc.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 2c95935

Please sign in to comment.