summaryrefslogtreecommitdiff
path: root/script/core/diagnostics/different-requires.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/core/diagnostics/different-requires.lua')
-rw-r--r--script/core/diagnostics/different-requires.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/core/diagnostics/different-requires.lua b/script/core/diagnostics/different-requires.lua
index 909342f4..fd7415b6 100644
--- a/script/core/diagnostics/different-requires.lua
+++ b/script/core/diagnostics/different-requires.lua
@@ -12,7 +12,7 @@ return function (uri, callback)
end
local cache = vm.getCache 'different-requires'
guide.eachSpecialOf(state.ast, 'require', function (source)
- local call = source.next
+ local call = source.parent
if not call or call.type ~= 'call' then
return
end