Skip to content

Commit

Permalink
Remove unreachable error case
Browse files Browse the repository at this point in the history
  • Loading branch information
Julow committed Jul 10, 2024
1 parent df3f429 commit 9bc2c3b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/model/reference.ml
Original file line number Diff line number Diff line change
Expand Up @@ -258,9 +258,8 @@ let parse whole_reference_location s :
(* {!path/identifier} *)
path (next_token.identifier :: components) next_token' tokens'
| (`None | `Prefixed _), _ ->
(* This is not really expected *)
expected ~expect_paths:true [] next_token.location
|> Error.raise_exception
(* Cannot be outputed by the lexer. *)
assert false
in

let ends_in_slash next_token =
Expand Down

0 comments on commit 9bc2c3b

Please sign in to comment.