-
-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
we should actually merge opts with a default dict so that we can reference keys without having to check if they exist (TODO)
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ rest.run = function(verbose) | |
return | ||
end | ||
|
||
return rest.run_request(result, verbose) | ||
return rest.run_request(result, { verbose = verbose }) | ||
end | ||
|
||
-- run will retrieve the required request information from the current buffer | ||
|
@@ -65,7 +65,7 @@ rest.run_request = function(req, opts) | |
raw = config.get("skip_ssl_verification") and vim.list_extend(result.raw, { "-k" }) | ||
or result.raw, | ||
body = result.body, | ||
dry_run = opts.verbose or false, | ||
dry_run = opts.verbose, | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
rochacbruno
Contributor
|
||
bufnr = result.bufnr, | ||
start_line = result.start_line, | ||
end_line = result.end_line, | ||
|
@teto this is raising an error