minor: no need to override function arg with local

pull/1763/head
Qingping Hou 9 years ago
parent 9c46cafc9c
commit 2dc5eb8586

@ -47,8 +47,8 @@ function util.gsplit(str, pattern, capture)
end
--https://gist.github.com/jesseadams/791673
function util.secondsToClock(sec, withoutSeconds)
local seconds = tonumber(sec)
function util.secondsToClock(seconds, withoutSeconds)
seconds = tonumber(seconds)
if seconds == 0 or seconds ~= seconds then
if withoutSeconds then
return "00:00";

Loading…
Cancel
Save