Why is this an issue?

Merging collapsible if statements increases the code’s readability.

Noncompliant code example

if (condition1) {
  if (condition2) {             // NonCompliant
    ...
  }
}

Compliant solution

if (condition1 && condition2) {
  ...
}