Skip to content

Commit 07184da

Browse files
committed
don't prefix with Printf when already opened
1 parent 344df97 commit 07184da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/api_remote.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ module Slack : Api.Slack = struct
5757
| Some access_token ->
5858
let url = "https://slack.com/api/chat.postMessage" in
5959
let data = Slack_j.string_of_post_message_req msg in
60-
let headers = [ Printf.sprintf "Authorization: Bearer %s" access_token ] in
60+
let headers = [ sprintf "Authorization: Bearer %s" access_token ] in
6161
let body = `Raw ("application/json", data) in
6262
log#info "sending to %s : %s" msg.channel data;
6363
( match%lwt http_request ~body ~headers `POST url with

0 commit comments

Comments
 (0)