summaryrefslogtreecommitdiff
path: root/script/core/collector.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-12-24 17:20:27 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-12-24 17:20:27 +0800
commit38a2f5ae4e7e5a5ba48289db6a2972e15d3d53cf (patch)
tree281d4acb7ab88d2751b71f8286d4a0b0c9f8bbf1 /script/core/collector.lua
parentef6c3fe05addbd299e4fc6e45cec94a83886c18f (diff)
downloadlua-language-server-38a2f5ae4e7e5a5ba48289db6a2972e15d3d53cf.zip
update
Diffstat (limited to 'script/core/collector.lua')
-rw-r--r--script/core/collector.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/script/core/collector.lua b/script/core/collector.lua
index 947f4059..5ccbcaee 100644
--- a/script/core/collector.lua
+++ b/script/core/collector.lua
@@ -70,9 +70,7 @@ function m.each(uri, name)
---@type scope
local scp = scope.getFolder(uri)
or scope.getLinkedScope(uri)
- if not scp then
- return DUMMY_FUNCTION
- end
+ or scope.fallback
local curi, value
local function getNext()