Skip to content

Commit 907898f

Browse files
committed
remove unnecessary match arg
1 parent 1ed9713 commit 907898f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

atd/src/annot.ml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -218,9 +218,9 @@ let validate schema root =
218218
let filter_by_tags ~tags full_module =
219219
let aux (annot : t) =
220220
annot |> List.filter (fun (section, _) -> (
221-
match tags, fields annot ~section ~field:"tag" with
222-
| _, [] -> true
223-
| tags, fields ->
221+
match fields annot ~section ~field:"tag" with
222+
| [] -> true
223+
| fields ->
224224
fields
225225
|> List.filter_map snd
226226
|> List.exists (fun value -> List.mem value tags)

0 commit comments

Comments
 (0)