From da9db887e34f0075e1433ee93854267aec0ef468 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Wed, 7 Jun 2023 10:09:10 -0400 Subject: refactor: helpers methods on `TypeCheckMode` (#19393) --- cli/module_loader.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'cli/module_loader.rs') diff --git a/cli/module_loader.rs b/cli/module_loader.rs index 3352cb951..804c9a162 100644 --- a/cli/module_loader.rs +++ b/cli/module_loader.rs @@ -3,7 +3,6 @@ use crate::args::CliOptions; use crate::args::DenoSubcommand; use crate::args::TsTypeLib; -use crate::args::TypeCheckMode; use crate::cache::ParsedSourceCache; use crate::emit::Emitter; use crate::graph_util::graph_lock_or_exit; @@ -169,7 +168,7 @@ impl ModuleLoadPreparer { drop(_pb_clear_guard); // type check if necessary - if self.options.type_check_mode() != TypeCheckMode::None + if self.options.type_check_mode().is_true() && !self.graph_container.is_type_checked(&roots, lib) { let graph = Arc::new(graph.segment(&roots)); -- cgit v1.2.3