I know someone would have said that. The problem is not the extra bracket because if i remove it i get a lot of general errors. So problem shouldn't be there.
Remove that curly bracket and fix those "general errors" or post them here. The error says you are using same value multiple times in a switch block.