From ff6314d71dd86a96e1cdb5132bb9145d16e5b255 Mon Sep 17 00:00:00 2001 From: Damian Senn Date: Fri, 10 May 2024 09:26:18 +0200 Subject: [PATCH] refactor: os.time() does not need an argument in our case --- lua/gh-actions/init.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lua/gh-actions/init.lua b/lua/gh-actions/init.lua index f428db0..ec144fb 100644 --- a/lua/gh-actions/init.lua +++ b/lua/gh-actions/init.lua @@ -82,9 +82,7 @@ local function fetch_data() end local function now() - local date = os.date('!*t') - ---@cast date osdateparam - return os.time(date) + return os.time() end local WORKFLOW_CONFIG_CACHE_TTL_S = 10