From a7a37c564f0b584b993eaec4c3dd164abdbd543f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Tue, 26 Apr 2022 16:32:05 +0800 Subject: cleanup --- script/core/rename.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'script/core/rename.lua') diff --git a/script/core/rename.lua b/script/core/rename.lua index ec21e87c..7599fad6 100644 --- a/script/core/rename.lua +++ b/script/core/rename.lua @@ -3,7 +3,6 @@ local vm = require 'vm' local util = require 'utility' local findSource = require 'core.find-source' local guide = require 'parser.guide' -local globalMgr = require 'vm.global-manager' local Forcing @@ -191,7 +190,7 @@ end ---@async local function ofGlobal(source, newname, callback) local key = guide.getKeyName(source) - local global = globalMgr.getGlobal('variable', key) + local global = vm.getGlobal('variable', key) if not global then return end @@ -214,7 +213,7 @@ end ---@async local function ofDocTypeName(source, newname, callback) local oldname = source[1] - local global = globalMgr.getGlobal('type', oldname) + local global = vm.getGlobal('type', oldname) if not global then return end -- cgit v1.2.3