Skip to content

Commit 96c2d3d

Browse files
committed
chore(lua): fix warnings
1 parent c34dea1 commit 96c2d3d

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

lua/cord/activity/manager.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,7 @@ function ActivityManager:setup_autocmds()
297297
self:queue_update(true)
298298
end
299299

300+
-- luacheck: ignore 212
300301
function ActivityManager:clear_autocmds()
301302
vim.cmd [[
302303
augroup CordActivityManager

lua/cord/event/sender.lua

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,7 @@ function Producer:send_event(type, data)
1414
end
1515

1616
function Producer:initialize(config)
17-
local config = {
18-
log_level = config.log_level,
19-
}
20-
21-
self:send_event('initialize', config)
17+
self:send_event('initialize', { log_level = config.log_level })
2218
end
2319

2420
function Producer:update_activity(activity)

0 commit comments

Comments
 (0)