diff options
Diffstat (limited to 'script-beta/core/diagnostics/redundant-parameter.lua')
-rw-r--r-- | script-beta/core/diagnostics/redundant-parameter.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/script-beta/core/diagnostics/redundant-parameter.lua b/script-beta/core/diagnostics/redundant-parameter.lua index a03a408f..074e7f7c 100644 --- a/script-beta/core/diagnostics/redundant-parameter.lua +++ b/script-beta/core/diagnostics/redundant-parameter.lua @@ -6,7 +6,7 @@ local define = require 'proto.define' local await = require 'await' local function countLibraryArgs(source) - local lib = vm.getLibrary(source, 'simple') + local lib = vm.getLibrary(source) if not lib then return nil end @@ -63,7 +63,7 @@ return function (uri, callback) local func = source.node local funcArgs - local defs = vm.getDefs(func, 'simple') + local defs = vm.getDefs(func) for _, def in ipairs(defs) do if def.type == 'function' then local args = countFuncArgs(def) |