Removes un-actionable warning for unknown diagnostic type (#88)

This commit is contained in:
Harrison (Harry) Cramer
2023-11-13 09:08:54 -05:00
committed by GitHub
parent 58c3dcc9ec
commit 4c7a610417

View File

@@ -205,8 +205,6 @@ M.set_diagnostics = function(namespace, diagnostics, type, opts)
vim.diagnostic.set(namespace, view.cur_layout.b.file.bufnr, diagnostics, opts) vim.diagnostic.set(namespace, view.cur_layout.b.file.bufnr, diagnostics, opts)
elseif type == "old" and view.cur_layout.a.file.bufnr then elseif type == "old" and view.cur_layout.a.file.bufnr then
vim.diagnostic.set(namespace, view.cur_layout.a.file.bufnr, diagnostics, opts) vim.diagnostic.set(namespace, view.cur_layout.a.file.bufnr, diagnostics, opts)
else
vim.notify("Unknown diagnostic type", vim.log.levels.ERROR)
end end
end end