From f8661038f4e5c7fc53e83b5104f7becb3f61026a Mon Sep 17 00:00:00 2001 From: V1K1NGbg Date: Sun, 4 Aug 2024 15:43:19 +0300 Subject: type_check --- src/luarocks/type_check.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/luarocks/type_check.lua b/src/luarocks/type_check.lua index a99ec691..ead47bf2 100644 --- a/src/luarocks/type_check.lua +++ b/src/luarocks/type_check.lua @@ -30,6 +30,10 @@ type_check.MAGIC_PLATFORMS = {} do local function fill_in_version(tbl, version) + if not tbl.fields then + return + end + for _, v in pairs(tbl.fields) do if type(v) == "table" then if v._version == nil then -- cgit v1.2.3-55-g6feb