Skip to content

Commit

Permalink
better linting
Browse files Browse the repository at this point in the history
  • Loading branch information
PizieDust committed Apr 4, 2024
1 parent 0f51db0 commit 9868711
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/frontend/query_commands.ml
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,8 @@ let dispatch pipeline (type a) : a Query_protocol.t -> a =
let attrs = Browse_raw.node_attributes n in
List.exists ~f:(fun (a:Typedtree.attribute) ->
let loc = a.attr_loc in
loc.loc_start.pos_cnum <= pos.pos_cnum && loc.loc_end.pos_cnum >= pos.pos_cnum
loc.loc_start.pos_cnum <= pos.pos_cnum
&& loc.loc_end.pos_cnum >= pos.pos_cnum
) attrs && has_a_deriver
in
let has_deriver = List.exists ~f:check_ppx node in
Expand Down

0 comments on commit 9868711

Please sign in to comment.