Better practice

This commit is contained in:
tommy 2024-12-02 08:17:20 -05:00
parent 66fc1893b9
commit f5fdaf1877
Signed by: tommy
GPG Key ID: E12CE5A632617F4E

View File

@ -16,6 +16,8 @@ for Line in File:lines() do
table.insert(RightList, tonumber(RightId))
end
File:close()
local function SortFunction(a, b)
return a < b
end
@ -40,5 +42,3 @@ for _, Distance in next, Distances do
end
print("Total distance:", TotalDistance)
File:close()