Skip to content
This repository was archived by the owner on Jun 15, 2023. It is now read-only.

Commit a77be1e

Browse files
Maximcristianoc
Maxim
authored andcommitted
Refactor code style "async" token lookahead
See #600 (comment)
1 parent e4d861d commit a77be1e

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/res_core.ml

+3-5
Original file line numberDiff line numberDiff line change
@@ -237,11 +237,9 @@ let rec goToClosing closingToken state =
237237
(* Madness *)
238238
let isEs6ArrowExpression ~inTernary p =
239239
Parser.lookahead p (fun state ->
240-
let () =
241-
match state.Parser.token with
242-
| Lident "async" -> Parser.next state
243-
| _ -> ()
244-
in
240+
(match state.Parser.token with
241+
| Lident "async" -> Parser.next state
242+
| _ -> ());
245243
match state.Parser.token with
246244
| Lident _ | Underscore -> (
247245
Parser.next state;

0 commit comments

Comments
 (0)