Module:MLB standings: Difference between revisions

Content deleted Content added
minor change for legibility: move calculation of winning percentage out of display code
eliminate use of local flag by checking sequence length instead
Line 136:
local listOfTeams = {};
local currentArgIdx = 1;
 
local fTeamInfoPresent = false
 
while (frame.args[currentArgIdx] ~= nil) do
Line 149 ⟶ 147:
end
 
if (not#listOfTeams fTeamInfoPresent== 0) then
return ''
end