chore: fix static-check errors

This commit is contained in:
Qingping Hou
2016-01-02 23:44:23 -08:00
parent c06209265a
commit 4759def09c
16 changed files with 19 additions and 53 deletions

View File

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