Skip to content

Commit e259a02

Browse files
committed
make fmt
Signed-off-by: David Vulakh <[email protected]>
1 parent 7d3b5be commit e259a02

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/analysis/stack_or_heap_enclosing.ml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ type stack_or_heap_enclosings = (Location.t * stack_or_heap) list
1212

1313
let from_nodes ~lsp_compat ~pos ~path =
1414
let[@tail_mod_cons] rec with_parents = function
15-
| node :: parent :: rest -> (node, Some parent) :: with_parents (parent :: rest)
16-
| [ node ] -> [ node, None ]
15+
| node :: parent :: rest ->
16+
(node, Some parent) :: with_parents (parent :: rest)
17+
| [ node ] -> [ (node, None) ]
1718
| [] -> []
1819
in
1920
let cursor_is_inside ({ loc_start; loc_end; _ } : Location.t) =
@@ -118,5 +119,4 @@ let from_nodes ~lsp_compat ~pos ~path =
118119
in
119120
path
120121
|> List.map ~f:(fun (_, node, _) -> node)
121-
|> with_parents
122-
|> List.filter_map ~f:aux
122+
|> with_parents |> List.filter_map ~f:aux

0 commit comments

Comments
 (0)