diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2024-03-01 10:54:46 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-01 15:54:46 +0000 |
commit | 878384aefaafacb2dc875ba1d7ea9d4af01d2cf0 (patch) | |
tree | 6da5a6f504eb1c47f25d7475427bb08274043f72 /cli/tools/check.rs | |
parent | 404422519c229b80508f20d954d2cc38ebda9f2f (diff) |
fix(unstable/publish): repect `--no-check` in no-slow-types (#22653)
Diffstat (limited to 'cli/tools/check.rs')
-rw-r--r-- | cli/tools/check.rs | 3 |
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())); } |