Skip to content

Commit

Permalink
Runtime: remove deadcode, duplicated cases
Browse files Browse the repository at this point in the history
  • Loading branch information
hhugo committed Sep 26, 2024
1 parent 29ed7cc commit 7c27577
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
"noAssignInExpressions": "off",
"noControlCharactersInRegex": "off",
"noDoubleEquals": "off",
"noDuplicateCase": "off",
"noFallthroughSwitchClause": "off",
"noRedeclare": "off",
"noSelfCompare": "off",
Expand Down
3 changes: 1 addition & 2 deletions runtime/compare.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ function caml_compare_val(a, b, total) {
caml_invalid_argument("equal: got Double_tag, should not happen");
break;
case 254: // Double_array_tag
// Cannot happen, handled above
// Cannot happen, handled in caml_compare_val_tag
caml_invalid_argument(
"equal: got Double_array_tag, should not happen",
);
Expand Down Expand Up @@ -237,7 +237,6 @@ function caml_compare_val(a, b, total) {
}
break;
case 246: // Lazy_tag
case 254: // Double_array
default: // Block with other tag
if (caml_is_continuation_tag(tag_a)) {
caml_invalid_argument("compare: continuation value");
Expand Down

0 comments on commit 7c27577

Please sign in to comment.