From 8e6091ef4cfe560d085401540ddd1cb33183ef29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Mon, 10 Dec 2018 15:05:16 +0800 Subject: =?UTF-8?q?=E6=A0=B9=E6=8D=AE=E5=85=A8=E5=B1=80lib=E6=8E=A8?= =?UTF-8?q?=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/matcher/find_lib.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'server/src/matcher/find_lib.lua') diff --git a/server/src/matcher/find_lib.lua b/server/src/matcher/find_lib.lua index 090859db..79cc05f9 100644 --- a/server/src/matcher/find_lib.lua +++ b/server/src/matcher/find_lib.lua @@ -1,4 +1,4 @@ -local libs = require 'matcher.library' +local library = require 'matcher.library' local function isGlobal(var) if var.type ~= 'field' then @@ -105,7 +105,7 @@ end local function findLib(var) local value = var.value or var - for libname, info in pairs(libs.global) do + for libname, info in pairs(library.global) do local fullKey = checkSource(value, libname, info.lib) if fullKey then return info.lib, fullKey, false @@ -117,7 +117,7 @@ local function findLib(var) end end end - for libname, info in pairs(libs.library) do + for libname, info in pairs(library.library) do local fullKey = checkSource(value, libname, info.lib) if fullKey then return info.lib, fullKey, false @@ -129,7 +129,7 @@ local function findLib(var) end end end - for libname, info in pairs(libs.object) do + for libname, info in pairs(library.object) do local fullKey = checkSource(value, libname, info.lib) if fullKey then return info.lib, fullKey, false -- cgit v1.2.3