Skip to content

Commit 5346bb1

Browse files
committed
remove unnecessary guard in pattern matching
1 parent 57b3b62 commit 5346bb1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jscomp/ml/ast_payload.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,10 @@ let is_single_bigint (x : t) : string option =
8989
{
9090
pstr_desc =
9191
Pstr_eval
92-
({pexp_desc = Pexp_constant (Pconst_integer (name, Some n)); _}, _);
92+
({pexp_desc = Pexp_constant (Pconst_integer (name, Some 'n')); _}, _);
9393
_;
9494
};
95-
] when n = 'n' ->
95+
] ->
9696
Some name
9797
| _ -> None
9898

0 commit comments

Comments
 (0)