Skip to content

Commit

Permalink
Address further PR review suggestions
Browse files Browse the repository at this point in the history
Co-authored-by: Pau Ruiz Safont <[email protected]>
Signed-off-by: Andriy Sultanov <[email protected]>
  • Loading branch information
last-genius and psafont authored Jul 4, 2024
1 parent b57ff2c commit 8f8341c
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions ocaml/xapi-cli-server/cli_operations.ml
Original file line number Diff line number Diff line change
Expand Up @@ -2928,13 +2928,7 @@ let event_wait_gen rpc session_id classname record_matches =
(List.map (fun r -> (r.name, fun () -> safe_get_field r)))
current_tbls
in
debug "Got %d records" (List.length all_recs) ;
(* true if anything matches now *)
let find_any_match recs =
let ls = List.map record_matches recs in
List.exists Fun.id ls
in
find_any_match all_recs
List.exists record_matches all_recs
in
finally
(fun () ->
Expand Down

0 comments on commit 8f8341c

Please sign in to comment.