[racerd] remove redundant check

Summary: The first condition subsumes the second.

Reviewed By: ezgicicek

Differential Revision: D19211397

fbshipit-source-id: 1dea38a59
master
Nikos Gorogiannis 5 years ago committed by Facebook Github Bot
parent adb1e48467
commit cbf068d1a0

@ -274,11 +274,7 @@ let threadsafe_annotations =
as an alias of @ThreadSafe in a .inferconfig file. *)
let is_thread_safe item_annot =
let f ((annot : Annot.t), _) =
List.exists
~f:(fun annot_string ->
Annotations.annot_ends_with annot annot_string || String.equal annot.class_name annot_string
)
threadsafe_annotations
List.exists ~f:(Annotations.annot_ends_with annot) threadsafe_annotations
&&
match annot.Annot.parameters with
| [Annot.{name= Some "enableChecks"; value= "false"}] ->

Loading…
Cancel
Save