From 643ecb02874fd477d68fe01f2d3dd053bf079669 Mon Sep 17 00:00:00 2001 From: "Adrian C. (anrxc)" Date: Sun, 4 Oct 2009 00:06:05 +0200 Subject: date: function simplified --- date.lua | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'date.lua') 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 -- }}} -- cgit v1.2.3