If two cases in a 'switch' statement are identical, the second case will never be executed. This most likely indicates a copy-paste error where the first case was copied and then not properly adjusted.
Examine the two cases to find out what they were meant to check. If both the conditions and the bodies are identical, then the second case is duplicate code that can be deleted. Otherwise, the second case needs to be adjusted.
In the example below, the function
controller checks its parameter
to determine what operation it is meant to perform. However, the condition of the second case is
identical to that of the first, so this case will never be executed.
Most likely, the second case should compare