Skip to content

Commit 1ad3299

Browse files
committed
fix: selene issue with unused variable
1 parent 1dcfb8f commit 1ad3299

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

tests/debugprint.lua

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,14 @@ local init_file = function(lines, extension, row, col, opts)
7575
end
7676

7777
local notify_message
78-
local notify_message_warnerr
79-
80-
vim.notify = function(msg, level)
81-
if level == vim.log.levels.ERROR or level == vim.log.levels.WARN then
82-
notify_message_warnerr = msg
83-
end
78+
-- FIXME: This will be needed when deprecating the old commands
79+
-- local notify_message_warnerr
80+
81+
vim.notify = function(msg, _)
82+
-- FIXME: This will be needed when deprecating the old commands
83+
-- if level == vim.log.levels.ERROR or level == vim.log.levels.WARN then
84+
-- -- notify_message_warnerr = msg
85+
-- end
8486

8587
notify_message = msg
8688
end

0 commit comments

Comments
 (0)