diff options
Diffstat (limited to 'cli/worker.rs')
-rw-r--r-- | cli/worker.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cli/worker.rs b/cli/worker.rs index 3643a4316..b9e1fab8e 100644 --- a/cli/worker.rs +++ b/cli/worker.rs @@ -510,7 +510,8 @@ async fn create_main_worker_internal( debug_flag: ps .options .log_level() - .map_or(false, |l| l == log::Level::Debug), + .map(|l| l == log::Level::Debug) + .unwrap_or(false), enable_testing_features: ps.options.enable_testing_features(), locale: deno_core::v8::icu::get_language_tag(), location: ps.options.location_flag().clone(), @@ -677,7 +678,8 @@ fn create_web_worker_callback( debug_flag: ps .options .log_level() - .map_or(false, |l| l == log::Level::Debug), + .map(|l| l == log::Level::Debug) + .unwrap_or(false), enable_testing_features: ps.options.enable_testing_features(), locale: deno_core::v8::icu::get_language_tag(), location: Some(args.main_module.clone()), |