mirror of
https://github.com/neovim/neovim.git
synced 2025-10-26 12:27:24 +00:00
refactor: fix luals warnings
This commit is contained in:
@@ -329,11 +329,11 @@ end
|
||||
---@param fn (T) Function to run
|
||||
---@return T
|
||||
local function once(fn)
|
||||
local value --- @type any
|
||||
local value --- @type function
|
||||
local ran = false
|
||||
return function(...)
|
||||
if not ran then
|
||||
value = fn(...)
|
||||
value = fn(...) --- @type function
|
||||
ran = true
|
||||
end
|
||||
return value
|
||||
|
||||
Reference in New Issue
Block a user