Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
phongulus committed Apr 8, 2024
1 parent ed2f00d commit ccdab06
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 1 addition & 2 deletions lib/action.ml
Original file line number Diff line number Diff line change
Expand Up @@ -386,8 +386,7 @@ module Action (Github_api : Api.Github) (Slack_api : Api.Slack) = struct
let with_gh_result_populate_slack (type a) ~(api_result : (a, string) Result.t) ~populate ~repo =
match api_result with
| Error _ -> Lwt.return_none
| Ok item ->
Lwt.return_some @@ (link, populate repo item)
| Ok item -> Lwt.return_some @@ (link, populate repo item)
in
match Github.gh_link_of_string link with
| None -> Lwt.return_none
Expand Down
4 changes: 1 addition & 3 deletions lib/slack_message.ml
Original file line number Diff line number Diff line change
Expand Up @@ -211,9 +211,7 @@ let populate_compare repository (compare : compare) =
let no_commit_msg = "There are no commit difference in this compare!" in
{ base with text = Some no_commit_msg; fallback = Some no_commit_msg }
| false ->
let commits_unfurl =
List.map (populate_commit ~include_changes:false repository) compare.commits
in
let commits_unfurl = List.map (populate_commit ~include_changes:false repository) compare.commits in
let commits_unfurl_text =
Slack.pp_list_with_previews
~pp_item:(fun (commit_unfurl : unfurl) -> Option.default "" commit_unfurl.text)
Expand Down

0 comments on commit ccdab06

Please sign in to comment.