Skip to content

Commit

Permalink
Remove vim.validate
Browse files Browse the repository at this point in the history
  • Loading branch information
notomo committed Oct 21, 2024
1 parent 371cb45 commit e357536
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion lua/waitevent/option.lua
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ local default = {
}

local new = function(raw_opts)
vim.validate({ raw_opts = { raw_opts, "table", true } })
raw_opts = raw_opts or {}
local opts = vim.tbl_deep_extend("force", default, raw_opts)
return setmetatable(opts, M)
Expand Down
5 changes: 0 additions & 5 deletions lua/waitevent/test/helper.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,6 @@ function helper.job_wait(job_id)
end

function helper.wait_autocmd(events, pattern)
vim.validate({
events = { events, "string", "table" },
pattern = { pattern, "string", true },
})

local called = false
local group = vim.api.nvim_create_augroup("waitevent_test", {})
vim.api.nvim_create_autocmd(events, {
Expand Down

0 comments on commit e357536

Please sign in to comment.