summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
Diffstat (limited to 'script')
-rw-r--r--script/core/hover/description.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/core/hover/description.lua b/script/core/hover/description.lua
index f9a0fc1d..570dec3f 100644
--- a/script/core/hover/description.lua
+++ b/script/core/hover/description.lua
@@ -109,7 +109,7 @@ end
local function buildEnumChunk(docType, name)
local enums = vm.getDocEnums(docType)
- if #enums == 0 then
+ if not enums or #enums == 0 then
return
end
local types = {}