aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorV1K1NGbg <victor@ilchev.com>2024-08-04 15:43:19 +0300
committerV1K1NGbg <victor@ilchev.com>2024-08-05 20:51:31 +0300
commitf8661038f4e5c7fc53e83b5104f7becb3f61026a (patch)
tree21a0ef52a31977362f59d1ccec778a378922d28e /src
parentabaa0b350ea3645eb9c67a2fd7e580d1dbcc65a4 (diff)
downloadluarocks-f8661038f4e5c7fc53e83b5104f7becb3f61026a.tar.gz
luarocks-f8661038f4e5c7fc53e83b5104f7becb3f61026a.tar.bz2
luarocks-f8661038f4e5c7fc53e83b5104f7becb3f61026a.zip
type_check
Diffstat (limited to 'src')
-rw-r--r--src/luarocks/type_check.lua4
1 files changed, 4 insertions, 0 deletions
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 = {}
30 30
31do 31do
32 local function fill_in_version(tbl, version) 32 local function fill_in_version(tbl, version)
33 if not tbl.fields then
34 return
35 end
36
33 for _, v in pairs(tbl.fields) do 37 for _, v in pairs(tbl.fields) do
34 if type(v) == "table" then 38 if type(v) == "table" then
35 if v._version == nil then 39 if v._version == nil then