4 ms·
If that if/else chain is returning a value, then what's even more clear is: if (condition1) { return something; } if (condition2) { return oth
by TeMPOraL 6y ago
If that if/else chain is returning a value, then what's even more clear is:
if (condition1) {
return something;
}
if (condition2) {
return otherStuff;
}
return finally;
I don't remember the last time I wrote an if/else chain that wasn't in return position.