Skip to content

Commit 1360f95

Browse files
ddomuradaPisC
authored andcommitted
Comment cleanup
1 parent 7b241d3 commit 1360f95

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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
@@ -165,7 +165,7 @@ rest.run_request = function(req, opts)
165165
end
166166

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

0 commit comments

Comments
 (0)