Skip to content

Commit

Permalink
Reindent according to ocamlformat
Browse files Browse the repository at this point in the history
  • Loading branch information
kit-ty-kate committed May 21, 2021
1 parent f7be244 commit 32e2169
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 1 addition & 3 deletions bin/opam.ml
Original file line number Diff line number Diff line change
Expand Up @@ -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 ->
Expand Down
6 changes: 4 additions & 2 deletions lib/opam_file.ml
Original file line number Diff line number Diff line change
@@ -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 ->
Expand Down

0 comments on commit 32e2169

Please sign in to comment.