Skip to content

Commit 19cb82d

Browse files
committed
Comment cleanup
1 parent a835f19 commit 19cb82d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lua/rest-nvim/curl/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ end
5050
local function create_error_handler(opts)
5151
return function(err)
5252
send_curl_stop_event(vim.tbl_extend("keep", { err = err }, opts))
53-
vim.notify(vim.inspect(err.message), vim.log.levels.ERROR)
53+
error(err.message)
5454
end
5555
end
5656

lua/rest-nvim/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ rest.run_request = function(req, opts)
163163
end
164164

165165
Opts = {
166-
request_id = vim.loop.now(), --random request id used to correlate RestStartRequest and RestStopRequest events
166+
request_id = vim.loop.now(), -- request id used to correlate RestStartRequest and RestStopRequest events
167167
method = result.method:lower(),
168168
url = result.url,
169169
-- plenary.curl can't set http protocol version

0 commit comments

Comments
 (0)