summaryrefslogtreecommitdiff
path: root/script/core/diagnostics/redundant-value.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/core/diagnostics/redundant-value.lua')
-rw-r--r--script/core/diagnostics/redundant-value.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/core/diagnostics/redundant-value.lua b/script/core/diagnostics/redundant-value.lua
index be483448..d6cd97a7 100644
--- a/script/core/diagnostics/redundant-value.lua
+++ b/script/core/diagnostics/redundant-value.lua
@@ -3,7 +3,7 @@ local define = require 'proto.define'
local lang = require 'language'
return function (uri, callback, code)
- local ast = files.getAst(uri)
+ local ast = files.getState(uri)
if not ast then
return
end