no-collapsible-if Prefer one condition over nested if statements without alternatives Nested if statements without else branches require both conditions before running the same body. Instead, you SHOULD join the conditions with && in one if statement. - Category: style - Level: warning - Fix: suggestion - Scope: module Reported declare function run(): void; function runWhen(ready: boolean, enabled: boolean): void { if (ready) { if (enabled) { run(); } } } Accepted declare function run(): void; function runWhen(ready: boolean, enabled: boolean): void { if (ready && enabled) { run(); } } Prior art - Clippy ยท collapsibleif language/linter/src/rules/style/nocollapsibleif.rs:8