summaryrefslogtreecommitdiffstatshomepage
path: root/runtime/lua/vim/net.lua
diff options
context:
space:
mode:
authorphanium <91544758+phanen@users.noreply.github.com>2026-01-27 22:18:02 +0800
committerGitHub <noreply@github.com>2026-01-27 09:18:02 -0500
commitdfa5d79d05d82aeedc7c19f9b670f31e01e3aea0 (patch)
tree22a686dc8e1ce474e447b895f520a3d6d42ae4db /runtime/lua/vim/net.lua
parentae93639ec440796073ea77941091c3ec83905cdc (diff)
fix: misc typos #37471
Diffstat (limited to 'runtime/lua/vim/net.lua')
-rw-r--r--runtime/lua/vim/net.lua8
1 files changed, 3 insertions, 5 deletions
diff --git a/runtime/lua/vim/net.lua b/runtime/lua/vim/net.lua
index 073a240a89..910198fb9b 100644
--- a/runtime/lua/vim/net.lua
+++ b/runtime/lua/vim/net.lua
@@ -15,11 +15,9 @@ local M = {}
--- completion. The `body` field in the response object contains the raw response data (text or binary).
--- Called with (err, nil) on failure, or (nil, { body = string|boolean }) on success.
function M.request(url, opts, on_response)
- vim.validate({
- url = { url, 'string' },
- opts = { opts, 'table', true },
- on_response = { on_response, 'function' },
- })
+ vim.validate('url', url, 'string')
+ vim.validate('opts', opts, 'table', true)
+ vim.validate('on_response', on_response, 'function')
opts = opts or {}
local retry = opts.retry or 3