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))
|
table.insert(RightList, tonumber(RightId))
|
||||||
end
|
end
|
||||||
|
|
||||||
|
File:close()
|
||||||
|
|
||||||
local function SortFunction(a, b)
|
local function SortFunction(a, b)
|
||||||
return a < b
|
return a < b
|
||||||
end
|
end
|
||||||
@ -40,5 +42,3 @@ for _, Distance in next, Distances do
|
|||||||
end
|
end
|
||||||
|
|
||||||
print("Total distance:", TotalDistance)
|
print("Total distance:", TotalDistance)
|
||||||
|
|
||||||
File:close()
|
|
||||||
|
Loading…
Reference in New Issue
Block a user