minor: no need to override function arg with local

This commit is contained in:
Qingping Hou
2016-01-03 01:08:26 -08:00
parent 9c46cafc9c
commit 2dc5eb8586

View File

@@ -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";