summaryrefslogtreecommitdiff
path: root/script/parser
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-06-17 19:34:37 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-06-17 19:34:37 +0800
commit9978771a0f377c6f7663324e96e40f985fb99eb4 (patch)
tree11d3096fdea4d6f8ca7e9458198c859adaf72618 /script/parser
parent2862d7cd292927b608523f5b8ede49c227e7065c (diff)
downloadlua-language-server-9978771a0f377c6f7663324e96e40f985fb99eb4.zip
improve
Diffstat (limited to 'script/parser')
-rw-r--r--script/parser/guide.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/parser/guide.lua b/script/parser/guide.lua
index ad07e90e..227282bc 100644
--- a/script/parser/guide.lua
+++ b/script/parser/guide.lua
@@ -292,7 +292,7 @@ function m.getUri(obj)
end
local root = m.getRoot(obj)
if root then
- return root.uri
+ return root.uri or ''
end
return ''
end