aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/func/_memoize.lua
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/lua/vim/func/_memoize.lua')
-rw-r--r--runtime/lua/vim/func/_memoize.lua6
1 files changed, 2 insertions, 4 deletions
diff --git a/runtime/lua/vim/func/_memoize.lua b/runtime/lua/vim/func/_memoize.lua
index 65210351bf..6e557905a7 100644
--- a/runtime/lua/vim/func/_memoize.lua
+++ b/runtime/lua/vim/func/_memoize.lua
@@ -39,10 +39,8 @@ end
--- @param strong? boolean
--- @return F
return function(hash, fn, strong)
- vim.validate({
- hash = { hash, { 'number', 'string', 'function' } },
- fn = { fn, 'function' },
- })
+ vim.validate('hash', hash, { 'number', 'string', 'function' })
+ vim.validate('fn', fn, 'function')
---@type table<any,table<any,any>>
local cache = {}