Skip to content

Commit aa9cd8c

Browse files
Format source code
1 parent b635ff2 commit aa9cd8c

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

lua/rest-nvim/curl/init.lua

+4-5
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,11 @@ local function create_callback(method, url)
115115
end
116116

117117
local function format_curl_cmd(res)
118-
local cmd = 'curl'
118+
local cmd = "curl"
119119

120120
for _, value in pairs(res) do
121-
if string.sub(value, 1, 1) == '-' then
122-
cmd = cmd .. ' ' .. value
121+
if string.sub(value, 1, 1) == "-" then
122+
cmd = cmd .. " " .. value
123123
else
124124
cmd = cmd .. " '" .. value .. "'"
125125
end
@@ -130,7 +130,6 @@ local function format_curl_cmd(res)
130130
return cmd
131131
end
132132

133-
134133
-- curl_cmd runs curl with the passed options, gets or creates a new buffer
135134
-- and then the results are printed to the recently obtained/created buffer
136135
-- @param opts curl arguments
@@ -139,7 +138,7 @@ M.curl_cmd = function(opts)
139138
local res = curl[opts.method](opts)
140139
local curl_cmd = format_curl_cmd(res)
141140

142-
if config.get('yank_dry_run') then
141+
if config.get("yank_dry_run") then
143142
vim.cmd('let @+="' .. curl_cmd .. '"')
144143
end
145144

0 commit comments

Comments
 (0)