Skip to content

Commit e7d1b7d

Browse files
authored
fix(#3122): remove redundant vim.validate (#3123)
1 parent ea5097a commit e7d1b7d

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

lua/nvim-tree/utils.lua

-15
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
local Iterator = require("nvim-tree.iterators.node-iterator")
2-
local notify = require("nvim-tree.notify")
32

43
local M = {
54
debouncers = {},
@@ -349,20 +348,6 @@ end
349348
---@param dst_pos string value pos
350349
---@param remove boolean
351350
function M.move_missing_val(src, src_path, src_pos, dst, dst_path, dst_pos, remove)
352-
local ok, err = pcall(vim.validate, {
353-
src = { src, "table" },
354-
src_path = { src_path, "string" },
355-
src_pos = { src_pos, "string" },
356-
dst = { dst, "table" },
357-
dst_path = { dst_path, "string" },
358-
dst_pos = { dst_pos, "string" },
359-
remove = { remove, "boolean" },
360-
})
361-
if not ok then
362-
notify.warn("move_missing_val: " .. (err or "invalid arguments"))
363-
return
364-
end
365-
366351
for pos in string.gmatch(src_path, "([^%.]+)%.*") do
367352
if src[pos] and type(src[pos]) == "table" then
368353
src = src[pos]

0 commit comments

Comments
 (0)