From 8ef3177695639a0223e2ce199dbbd1d4280606d2 Mon Sep 17 00:00:00 2001 From: vyfor Date: Fri, 6 Dec 2024 19:07:28 +0500 Subject: [PATCH] chore(lua): fix warnings --- lua/cord/activity/manager.lua | 2 ++ lua/cord/event/sender.lua | 6 +----- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/lua/cord/activity/manager.lua b/lua/cord/activity/manager.lua index 318d2b0c..de77e69f 100644 --- a/lua/cord/activity/manager.lua +++ b/lua/cord/activity/manager.lua @@ -297,6 +297,7 @@ function ActivityManager:setup_autocmds() self:queue_update(true) end +--luacheck: push no unused args function ActivityManager:clear_autocmds() vim.cmd [[ augroup CordActivityManager @@ -304,6 +305,7 @@ function ActivityManager:clear_autocmds() augroup END ]] end +-- luacheck: pop function ActivityManager:set_activity(activity) self.tx:update_activity(activity) diff --git a/lua/cord/event/sender.lua b/lua/cord/event/sender.lua index 9ee2d620..60020afc 100644 --- a/lua/cord/event/sender.lua +++ b/lua/cord/event/sender.lua @@ -14,11 +14,7 @@ function Producer:send_event(type, data) end function Producer:initialize(config) - local config = { - log_level = config.log_level, - } - - self:send_event('initialize', config) + self:send_event('initialize', { log_level = config.log_level }) end function Producer:update_activity(activity)