Skip to content

Commit

Permalink
chore(lua): fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
vyfor committed Dec 6, 2024
1 parent c34dea1 commit 8ef3177
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 2 additions & 0 deletions lua/cord/activity/manager.lua
Original file line number Diff line number Diff line change
Expand Up @@ -297,13 +297,15 @@ function ActivityManager:setup_autocmds()
self:queue_update(true)
end

--luacheck: push no unused args
function ActivityManager:clear_autocmds()
vim.cmd [[
augroup CordActivityManager
autocmd!
augroup END
]]
end
-- luacheck: pop

function ActivityManager:set_activity(activity)
self.tx:update_activity(activity)
Expand Down
6 changes: 1 addition & 5 deletions lua/cord/event/sender.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8ef3177

Please sign in to comment.