aboutsummaryrefslogtreecommitdiff
path: root/date.lua
diff options
context:
space:
mode:
authorAdrian C. (anrxc) <anrxc@sysphere.org>2009-10-04 00:06:05 +0200
committerAdrian C. (anrxc) <anrxc@sysphere.org>2009-10-04 15:57:24 +0200
commit4d869a90dbd476305b09ed87e1614690913e4678 (patch)
treef81666b414f2b97f54e0e94588beffa4bc07cb0a /date.lua
parentbdc31d01fe9486fee73ec2d49b6cd89380ef7b3d (diff)
downloadvicious-legacy-4d869a90dbd476305b09ed87e1614690913e4678.tar.xz
date: function simplified
Diffstat (limited to 'date.lua')
-rw-r--r--date.lua6
1 files changed, 1 insertions, 5 deletions
diff --git a/date.lua b/date.lua
index 4b23411..2ff39fb 100644
--- a/date.lua
+++ b/date.lua
@@ -16,11 +16,7 @@ module("vicious.date")
-- {{{ Date widget type
local function worker(format)
- if format == nil then
- return os.date()
- else
- return os.date(format)
- end
+ return os.date(format or nil)
end
-- }}}