mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 07:14:47 -05:00
Use check() (#111)
This commit is contained in:
parent
8e211ea685
commit
71d789198b
1 changed files with 1 additions and 3 deletions
|
@ -88,9 +88,7 @@ func DispatchLoop() {
|
|||
select {
|
||||
case msg := <-resChan:
|
||||
out, err := proto.Marshal(msg)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
check(err)
|
||||
err = worker.SendBytes(out)
|
||||
stats.v8workerSend++
|
||||
stats.v8workerBytesSent += len(out)
|
||||
|
|
Loading…
Reference in a new issue