Skip to content

Commit

Permalink
Use pairs to iter both table and array (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
bytemain authored Apr 8, 2024
1 parent 2a0a50d commit 4837a77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/util.lua
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ end

function UTIL.calculate_shorthand(list)
local versions_shorthand = {}
for _, v in ipairs(list) do
for _, v in pairs(list) do
local version = v.version
local major, minor = UTIL.extract_semver(version)

Expand Down

0 comments on commit 4837a77

Please sign in to comment.