summaryrefslogtreecommitdiff
path: root/script/core/diagnostics/need-check-nil.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/core/diagnostics/need-check-nil.lua')
-rw-r--r--script/core/diagnostics/need-check-nil.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/core/diagnostics/need-check-nil.lua b/script/core/diagnostics/need-check-nil.lua
index 98fdfd08..56cb1eae 100644
--- a/script/core/diagnostics/need-check-nil.lua
+++ b/script/core/diagnostics/need-check-nil.lua
@@ -28,7 +28,7 @@ return function (uri, callback)
return
end
local node = vm.compileNode(src)
- if node:hasFalsy() then
+ if node:hasFalsy() and not vm.getInfer(src):hasType(uri, 'any') then
callback {
start = src.start,
finish = src.finish,