diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2023-06-07 10:09:10 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-07 10:09:10 -0400 |
commit | da9db887e34f0075e1433ee93854267aec0ef468 (patch) | |
tree | cb10d061c4d28933524a26d62d7ca4957d95a443 /cli/module_loader.rs | |
parent | 28ce0ef583b1be03f5ec4fdd90b946590862c5d4 (diff) |
refactor: helpers methods on `TypeCheckMode` (#19393)
Diffstat (limited to 'cli/module_loader.rs')
-rw-r--r-- | cli/module_loader.rs | 3 |
1 files changed, 1 insertions, 2 deletions
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)); |