[minor] Unnecessary sprintf

Reviewed By: jvillard

Differential Revision: D29433849

fbshipit-source-id: 23330f1c1
master
Daiva Naudziuniene 3 years ago committed by Facebook GitHub Bot
parent 661df0ca16
commit 2c93de142e

@ -73,13 +73,12 @@ let get_message diagnostic =
F.asprintf "undefined behaviour caused by nil messaging of non-pod return type (%a)" F.asprintf "undefined behaviour caused by nil messaging of non-pod return type (%a)"
(Typ.pp Pp.text) non_pod_typ (Typ.pp Pp.text) non_pod_typ
| Invalidation.InsertionIntoCollection -> | Invalidation.InsertionIntoCollection ->
F.sprintf "nil insertion into collection" "nil insertion into collection"
| Invalidation.BlockCall -> | Invalidation.BlockCall ->
F.sprintf "nil block call" "nil block call"
in in
let issue_kind_str = let issue_kind_str =
Option.value_map must_be_valid_reason Option.value_map must_be_valid_reason ~default:"null pointer dereference"
~default:(F.sprintf "null pointer dereference")
~f:nil_issue_kind ~f:nil_issue_kind
in in
let pp_access_trace fmt (trace : Trace.t) = let pp_access_trace fmt (trace : Trace.t) =

Loading…
Cancel
Save