# HG changeset patch # User Kim Alvefur # Date 1455803871 -3600 # Node ID eadbf19d0de05fcc7ab8ae480f1fbcdf2ba7008a # Parent d0b64f1e4f5d5a3f4af49b1b9b3e47402459504a loggingmanager,modulemanager,moduleapi: Ignore warning about accessing _G.unpack [luacheck] diff -r d0b64f1e4f5d -r eadbf19d0de0 core/loggingmanager.lua --- a/core/loggingmanager.lua Thu Feb 18 14:57:04 2016 +0100 +++ b/core/loggingmanager.lua Thu Feb 18 14:57:51 2016 +0100 @@ -16,7 +16,8 @@ local os_date = os.date; local getstyle, getstring = require "util.termcolours".getstyle, require "util.termcolours".getstring; local tostring = tostring; -local select, unpack = select, table.unpack or unpack; +local select = select; +local unpack = table.unpack or unpack; --luacheck: ignore 113 local config = require "core.configmanager"; local logger = require "util.logger"; diff -r d0b64f1e4f5d -r eadbf19d0de0 core/moduleapi.lua --- a/core/moduleapi.lua Thu Feb 18 14:57:04 2016 +0100 +++ b/core/moduleapi.lua Thu Feb 18 14:57:51 2016 +0100 @@ -20,7 +20,7 @@ local t_insert, t_remove, t_concat = table.insert, table.remove, table.concat; local error, setmetatable, type = error, setmetatable, type; local ipairs, pairs, select = ipairs, pairs, select; -local unpack = table.unpack or unpack; +local unpack = table.unpack or unpack; --luacheck: ignore 113 local tonumber, tostring = tonumber, tostring; local require = require; diff -r d0b64f1e4f5d -r eadbf19d0de0 core/modulemanager.lua --- a/core/modulemanager.lua Thu Feb 18 14:57:04 2016 +0100 +++ b/core/modulemanager.lua Thu Feb 18 14:57:51 2016 +0100 @@ -24,7 +24,7 @@ local debug_traceback = debug.traceback; local select = select; -local unpack = table.unpack or unpack; +local unpack = table.unpack or unpack; --luacheck: ignore 113 local pcall = function(f, ...) local n = select("#", ...); local params = {...};