From 66e57c57e41099fe3d07e066522d8b1869d889fc Mon Sep 17 00:00:00 2001 From: koonwen Date: Fri, 7 Feb 2025 15:16:13 +0800 Subject: [PATCH] fmt --- lib/api_remote.ml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/api_remote.ml b/lib/api_remote.ml index 770b966..4373bfe 100644 --- a/lib/api_remote.ml +++ b/lib/api_remote.ml @@ -148,10 +148,8 @@ let upload_file ~(ctx : Context.t) ~(file : Slack_t.files_upload_req) = ( match%lwt http_request ~ua:ctx.ua ~body `POST upload_url with | Error e -> slack_lib_fail "upload file failed with: %s" e | Ok _ -> - let files : Slack_t.files_v2 = [{ id = file_id; title = file.title }] in - let req = - Slack_j.make_complete_upload_ext_req ~files ?channels:file.channels ?thread_ts:file.thread_ts () - in + let files : Slack_t.files_v2 = [ { id = file_id; title = file.title } ] in + let req = Slack_j.make_complete_upload_ext_req ~files ?channels:file.channels ?thread_ts:file.thread_ts () in ( match%lwt complete_upload_external ~ctx ~req with | Error e -> Lwt.return_error e | Ok { files; _ } ->