From 32e2169f3b69cf75a3a47c28e72baae1832c6ca8 Mon Sep 17 00:00:00 2001 From: Kate Date: Fri, 21 May 2021 12:30:28 +0100 Subject: [PATCH] Reindent according to ocamlformat --- bin/opam.ml | 4 +--- lib/opam_file.ml | 6 ++++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/bin/opam.ml b/bin/opam.ml index b85282f0..a473be13 100644 --- a/bin/opam.ml +++ b/bin/opam.ml @@ -25,9 +25,7 @@ end let remove_generated_dune_comment opam = let sep = "# This file is generated by dune, edit dune-project instead\n" in - match Astring.String.cut ~sep opam with - | Some ("", opam) -> opam - | _ -> opam + match Astring.String.cut ~sep opam with Some ("", opam) -> opam | _ -> opam let write_opam_file ~dry_run ~id ~url ~opam_f pkg dest_opam_file = OS.File.read opam_f >>= fun opam -> diff --git a/lib/opam_file.ml b/lib/opam_file.ml index f8b8bedb..36c19911 100644 --- a/lib/opam_file.ml +++ b/lib/opam_file.ml @@ -1,7 +1,9 @@ let upgrade ~filename ~url ~id ~version opam_t = let commit_hash = - { OpamParserTypes.FullPos.pelem = OpamParserTypes.FullPos.String id - ; pos = OpamTypesBase.pos_file filename } + { + OpamParserTypes.FullPos.pelem = OpamParserTypes.FullPos.String id; + pos = OpamTypesBase.pos_file filename; + } in match version with | `V1 descr ->