summaryrefslogtreecommitdiff
path: root/cli/tools/check.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tools/check.rs')
-rw-r--r--cli/tools/check.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/cli/tools/check.rs b/cli/tools/check.rs
index 68bf9716e..ec4490017 100644
--- a/cli/tools/check.rs
+++ b/cli/tools/check.rs
@@ -99,8 +99,7 @@ impl TypeChecker {
mut graph: ModuleGraph,
options: CheckOptions,
) -> Result<(Arc<ModuleGraph>, Diagnostics), AnyError> {
- debug_assert_ne!(options.type_check_mode, TypeCheckMode::None);
- if graph.roots.is_empty() {
+ if !options.type_check_mode.is_true() || graph.roots.is_empty() {
return Ok((graph.into(), Default::default()));
}