Closed appujet closed 2 months ago
The break
statements aren't necessary when using return
in each case, as return exits the function.
As already stated, the break statements are there purely for syntax of switch case statements. Even tho they aren't needed, they are critical for a read able switch case statement
You can keep the documentation, but revert the change with the switch statement
this is due to "formatting" and how the syntax of switch case is
yes, because of the early return the break isn't needed. But the break is needed to seperate the cases, else they wouldn't be seperated. therefore keep the break.