Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
koonwen committed Feb 7, 2025
1 parent dab5247 commit 66e57c5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/api_remote.ml
Original file line number Diff line number Diff line change
Expand Up @@ -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; _ } ->
Expand Down

0 comments on commit 66e57c5

Please sign in to comment.