Skip to content

Commit

Permalink
fixup: quick update, squash later
Browse files Browse the repository at this point in the history
  • Loading branch information
dundargoc committed Feb 5, 2025
1 parent d44329e commit ab5ebf5
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions lua/gitsigns/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -893,15 +893,12 @@ M.schema = {
},
}

--- @param t table<string, table>
local function validate(t)
local function validate(k, v, ty)
if vim.fn.has('nvim-0.11') == 1 then
for k, v in pairs(t) do
--- @diagnostic disable-next-line: redundant-parameter,param-type-mismatch
vim.validate(k, v[1], v[2], v[3])
end
--- @diagnostic disable-next-line: redundant-parameter,param-type-mismatch
vim.validate(k, v, ty)
else
vim.validate(t)
vim.validate({ [k] = { v, ty } })
end
end

Expand Down

0 comments on commit ab5ebf5

Please sign in to comment.