diff options
author | Yiyu Lin <linyiyu1992@gmail.com> | 2023-01-04 20:20:36 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-04 13:20:36 +0100 |
commit | 319f6074761421b797db71bf10f6171516e3d92a (patch) | |
tree | 86d67cc767861e826fff6f2d41c243dbbcd25f60 /runtime/ops | |
parent | 2da882137eecc96e73a8c4f8e9b7d59ccdbfca66 (diff) |
chore(cli,ext,rt): remove some unnecessary `clone` or `malloc` (#17261)
Diffstat (limited to 'runtime/ops')
-rw-r--r-- | runtime/ops/web_worker/sync_fetch.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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.") })?; |