Skip to content

Commit 4837a77

Browse files
authored
Use pairs to iter both table and array (#6)
1 parent 2a0a50d commit 4837a77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/util.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ end
6262

6363
function UTIL.calculate_shorthand(list)
6464
local versions_shorthand = {}
65-
for _, v in ipairs(list) do
65+
for _, v in pairs(list) do
6666
local version = v.version
6767
local major, minor = UTIL.extract_semver(version)
6868

0 commit comments

Comments
 (0)