summaryrefslogtreecommitdiff
path: root/runtime/ops
diff options
context:
space:
mode:
authorYiyu Lin <linyiyu1992@gmail.com>2023-01-15 12:06:46 +0800
committerGitHub <noreply@github.com>2023-01-15 09:36:46 +0530
commitfd85f840cd707c31d08fa836562127e249c9ff62 (patch)
treec4847881976069d41d1b53616bdeaf5d073f3af6 /runtime/ops
parent05ef925eb095ae603f694fe8172ddcbd5b19b9b2 (diff)
refactor: clean up `unwrap` and `clone` (#17282)
Co-authored-by: Divy Srivastava <dj.srivastava23@gmail.com>
Diffstat (limited to 'runtime/ops')
-rw-r--r--runtime/ops/web_worker/sync_fetch.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/runtime/ops/web_worker/sync_fetch.rs b/runtime/ops/web_worker/sync_fetch.rs
index 9d356f5ee..69adec051 100644
--- a/runtime/ops/web_worker/sync_fetch.rs
+++ b/runtime/ops/web_worker/sync_fetch.rs
@@ -57,8 +57,7 @@ pub fn op_worker_sync_fetch(
let runtime = tokio::runtime::Builder::new_current_thread()
.enable_io()
.enable_time()
- .build()
- .unwrap();
+ .build()?;
let handles: Vec<_> = scripts
.into_iter()