From 3d3bb764baa9d4c5331d334450b7000cf380b8e9 Mon Sep 17 00:00:00 2001 From: Harrison Cramer Date: Wed, 9 Aug 2023 17:30:36 -0400 Subject: [PATCH] Bugfix: The job might not return JSON data, so we don't need to throw here --- lua/gitlab/job.lua | 2 -- 1 file changed, 2 deletions(-) diff --git a/lua/gitlab/job.lua b/lua/gitlab/job.lua index 3135f4d..7c42d0a 100644 --- a/lua/gitlab/job.lua +++ b/lua/gitlab/job.lua @@ -30,8 +30,6 @@ M.run_job = function(endpoint, method, body, callback) local message = string.format("%s: %s", data.message, data.details) vim.notify(message, vim.log.levels.ERROR) end - else - vim.notify("Could not parse command output!", vim.log.levels.ERROR) end end, 0) end,