You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (condition) {
return;
} else {
/* some long computation */
}
The "positive" branch of if statement always returns, so there is no point in having else there. The program would be a lot more readable if the else wasn't there and the block inside else continued with the same indent level as the if statement.
The text was updated successfully, but these errors were encountered:
For example, in this snippet:
The "positive" branch of if statement always returns, so there is no point in having else there. The program would be a lot more readable if the else wasn't there and the block inside else continued with the same indent level as the if statement.
The text was updated successfully, but these errors were encountered: