summaryrefslogtreecommitdiff
path: root/script/glob/gitignore.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-06-16 21:19:32 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-06-16 21:19:32 +0800
commita1f966af7db434c5dc7b2423ae63f4fe21957b46 (patch)
treead0c8a29aa780d9c1ae1e4afb7563e90c09ee65b /script/glob/gitignore.lua
parentb1d96627a1af5e4485720636dfb1d4f767e184d5 (diff)
downloadlua-language-server-a1f966af7db434c5dc7b2423ae63f4fe21957b46.zip
can set `table` or `class` to `nil`
Diffstat (limited to 'script/glob/gitignore.lua')
-rw-r--r--script/glob/gitignore.lua3
1 files changed, 0 insertions, 3 deletions
diff --git a/script/glob/gitignore.lua b/script/glob/gitignore.lua
index a6a3df3e..de8fd005 100644
--- a/script/glob/gitignore.lua
+++ b/script/glob/gitignore.lua
@@ -168,9 +168,6 @@ end
---@async
function mt:scan(path, callback, hook)
local files = {}
- if type(callback) ~= 'function' then
- callback = nil
- end
local list = {}
---@async