mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
minor: no need to override function arg with local
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user