aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
-- }}}