From 2dc5eb85863646e400c1458ceaa6c20d810f28ca Mon Sep 17 00:00:00 2001 From: Qingping Hou Date: Sun, 3 Jan 2016 01:08:26 -0800 Subject: [PATCH] minor: no need to override function arg with local --- frontend/util.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/util.lua b/frontend/util.lua index 4c9d0c940..3dfebe88e 100644 --- a/frontend/util.lua +++ b/frontend/util.lua @@ -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";