Skip to content

Commit 2bc4b44

Browse files
Matheus Rocha Vieirastasm
authored andcommitted
Duplicate switch case (#257)
If two cases in a switch statement have the same label, the second case will never be executed.
1 parent aa89b97 commit 2bc4b44

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

lib/serializer.mjs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,6 @@ function serialize_operator({name, args}, state) {
6969
case "maybe": {
7070
return `${serialized_args[0]}?`;
7171
}
72-
case "maybe": {
73-
return `${serialized_args[0]}?`;
74-
}
7572
case "never": {
7673
return null;
7774
}

0 commit comments

Comments
 (0)