Better practice
This commit is contained in:
parent
66fc1893b9
commit
f5fdaf1877
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user