From 4c7a61041705978f7ed6d905a3128c6b531a56ac Mon Sep 17 00:00:00 2001 From: "Harrison (Harry) Cramer" <32515581+harrisoncramer@users.noreply.github.com> Date: Mon, 13 Nov 2023 09:08:54 -0500 Subject: [PATCH] Removes un-actionable warning for unknown diagnostic type (#88) --- lua/gitlab/reviewer/diffview.lua | 2 -- 1 file changed, 2 deletions(-) diff --git a/lua/gitlab/reviewer/diffview.lua b/lua/gitlab/reviewer/diffview.lua index 9f9ed82..d89aece 100644 --- a/lua/gitlab/reviewer/diffview.lua +++ b/lua/gitlab/reviewer/diffview.lua @@ -205,8 +205,6 @@ M.set_diagnostics = function(namespace, diagnostics, type, opts) vim.diagnostic.set(namespace, view.cur_layout.b.file.bufnr, diagnostics, opts) elseif type == "old" and view.cur_layout.a.file.bufnr then vim.diagnostic.set(namespace, view.cur_layout.a.file.bufnr, diagnostics, opts) - else - vim.notify("Unknown diagnostic type", vim.log.levels.ERROR) end end