refactor: Don't assign scope to variable from Lua VM

This commit is contained in:
Caleb Maclennan 2020-10-01 15:55:53 +03:00
parent 42311877f0
commit ce1229b434
No known key found for this signature in database
GPG Key ID: 63CC496475267693
1 changed files with 1 additions and 2 deletions

View File

@ -256,11 +256,10 @@ ldoc_contents = tablex.makeset(ldoc_contents)
local function loadstr (ldoc,txt)
local chunk, err
local load
-- Penlight's Lua 5.2 compatibility has wobbled over the years...
if not rawget(_G,'loadin') then -- Penlight 0.9.5
-- Penlight 0.9.7; no more global load() override
load = load or utils.load
local load = load or utils.load
chunk,err = load(txt,'config',nil,ldoc)
else
-- luacheck: push ignore 113