Collapsible "if" statements should be merged

squid : S1066

Merging collapsible if statements increases the code's readability.

The following code:

if (condition1) {
  if (condition2) {             // Non-Compliant
    /* ... */
  }
}

should be refactored into:

if (condition1 && condition2) { // Compliant
  /* ... */
}