Unreachable code detected in case statement

break is not necessary if all paths in a case statement end with a return. Do not use it then, otherwise you will get the mentioned warning.

Leave a Comment