[inferbo] Fix repeated code

Summary: As per title

Reviewed By: skcho

Differential Revision: D21974621

fbshipit-source-id: e319f81e0
master
Ezgi Çiçek 5 years ago committed by Facebook GitHub Bot
parent 6d7df79573
commit 5de191a50d

@ -676,8 +676,7 @@ module Val = struct
match typ.Typ.desc with
| Tint (IBool | IChar | ISChar | IUChar | IUShort) ->
let v = itv_val ~non_int:is_java ~taint in
if Language.curr_language_is Java then set_itv_updated_by_unknown v
else set_itv_updated_by_addition v
if is_java then set_itv_updated_by_unknown v else set_itv_updated_by_addition v
| Tfloat _ | Tfun | TVar _ ->
itv_val ~non_int:true ~taint |> set_itv_updated_by_unknown
| Tint _ | Tvoid ->

Loading…
Cancel
Save