Skip to content

Commit

Permalink
command.ml: use Option.map (#900)
Browse files Browse the repository at this point in the history
  • Loading branch information
fblanqui authored Jul 29, 2022
1 parent 1d5ca95 commit 3821041
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/handle/command.ml
Original file line number Diff line number Diff line change
Expand Up @@ -471,12 +471,9 @@ let get_proof_data : compiler -> sig_state -> p_command -> cmd_output =
(* Check that the proof is indeed finished. *)
if not (finished ps) then
fatal pe.pos "The proof is not finished.";
(* Get the definition. *)
(* Get the final definition. *)
let d =
match ps.proof_term with
| None -> None
| Some m -> Some (unfold (mk_Meta(m,[||])))
in
Option.map (fun m -> unfold (mk_Meta(m,[||]))) ps.proof_term in
(* Add the symbol in the signature. *)
Console.out 2 (Color.red "symbol %a : %a") uid id term a;
fst (add_symbol ss expo prop mstrat opaq p_sym_nam a impl d)
Expand Down

0 comments on commit 3821041

Please sign in to comment.