From 0e23a4dc890ac3739c29ed6bca95fa3a876e0797 Mon Sep 17 00:00:00 2001 From: Alexander Courtis Date: Fri, 9 May 2025 09:58:18 +1000 Subject: [PATCH] fix(#3122): remove redundant vim.validate --- lua/nvim-tree/utils.lua | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/lua/nvim-tree/utils.lua b/lua/nvim-tree/utils.lua index 194845f5c1f..dbf63df329e 100644 --- a/lua/nvim-tree/utils.lua +++ b/lua/nvim-tree/utils.lua @@ -1,5 +1,4 @@ local Iterator = require("nvim-tree.iterators.node-iterator") -local notify = require("nvim-tree.notify") local M = { debouncers = {}, @@ -349,20 +348,6 @@ end ---@param dst_pos string value pos ---@param remove boolean function M.move_missing_val(src, src_path, src_pos, dst, dst_path, dst_pos, remove) - local ok, err = pcall(vim.validate, { - src = { src, "table" }, - src_path = { src_path, "string" }, - src_pos = { src_pos, "string" }, - dst = { dst, "table" }, - dst_path = { dst_path, "string" }, - dst_pos = { dst_pos, "string" }, - remove = { remove, "boolean" }, - }) - if not ok then - notify.warn("move_missing_val: " .. (err or "invalid arguments")) - return - end - for pos in string.gmatch(src_path, "([^%.]+)%.*") do if src[pos] and type(src[pos]) == "table" then src = src[pos]