Having two branches in the same @if ... @else if ... @else structure with the same implementation is
at best duplicate code, and at worst a coding error. If the same logic is truly needed for both instances, then they
should be combined.
@if $x == 0 {
do-something();
} @else if $x == 1 {
do-something-different();
} @else {
do-something(); /* Noncompliant: Same implementation as in the @if block */
}
@if $x == 1 {
do-something-different();
} @else {
do-something();
}
OR
@if $x == 0 {
do-something();
} @else if $x == 1 {
do-something-different();
} @else {
do-something-else();
}