From 319f6074761421b797db71bf10f6171516e3d92a Mon Sep 17 00:00:00 2001 From: Yiyu Lin Date: Wed, 4 Jan 2023 20:20:36 +0800 Subject: chore(cli,ext,rt): remove some unnecessary `clone` or `malloc` (#17261) --- runtime/ops/web_worker/sync_fetch.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/ops/web_worker') diff --git a/runtime/ops/web_worker/sync_fetch.rs b/runtime/ops/web_worker/sync_fetch.rs index f96a01a5a..9d356f5ee 100644 --- a/runtime/ops/web_worker/sync_fetch.rs +++ b/runtime/ops/web_worker/sync_fetch.rs @@ -107,7 +107,7 @@ pub fn op_worker_sync_fetch( } "blob" => { let blob = - blob_store.get_object_url(script_url)?.ok_or_else(|| { + blob_store.get_object_url(script_url).ok_or_else(|| { type_error("Blob for the given URL not found.") })?; -- cgit v1.2.3