Improve code quality

This commit is contained in:
Lars Mueller 2022-01-04 15:27:27 +01:00
parent d7cd844e9b
commit dc648aa598

@ -256,7 +256,7 @@ function get_mod_info()
local function read_depends(field) local function read_depends(field)
local depends = {} local depends = {}
for depend in (mod_conf[field] or ""):gmatch"[^,]+" do for depend in (mod_conf[field] or ""):gmatch"[^,]+" do
depends[depend:match"^%s*(.-)%s*$"] = true depends[modlib.text.trim_spacing(depend)] = true
end end
info[field] = depends info[field] = depends
end end