From 13e60fc2375db5b5f6270946326c460be9490353 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5kon=20Harnes?= Date: Sun, 24 Mar 2024 11:57:41 +0100 Subject: [PATCH] fix: remove opts parameter --- lua/img-clip/paste.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lua/img-clip/paste.lua b/lua/img-clip/paste.lua index 9f968dd..d95ba18 100644 --- a/lua/img-clip/paste.lua +++ b/lua/img-clip/paste.lua @@ -74,14 +74,14 @@ M.paste_image_from_url = function(url) return false end - local output, exit_code = fs.process_image(file_path, opts) + local output, exit_code = fs.process_image(file_path) if exit_code ~= 0 then util.warn("Could not process image.", true) util.warn("Output: " .. output, true) end - if config.get_opt("embed_image_as_base64", opts) then - if M.embed_image_as_base64(file_path, opts) then + if config.get_opt("embed_image_as_base64") then + if M.embed_image_as_base64(file_path) then return true end end @@ -128,7 +128,7 @@ M.paste_image_from_path = function(src_path) return false end - local output, exit_code = fs.process_image(file_path, opts) + local output, exit_code = fs.process_image(file_path) if exit_code ~= 0 then util.warn("Could not process image.", true) util.warn("Output: " .. output, true) @@ -166,13 +166,13 @@ M.paste_image_from_clipboard = function() return false end - local output, exit_code = fs.process_image(file_path, opts) + local output, exit_code = fs.process_image(file_path) if exit_code ~= 0 then util.warn("Could not process image.", true) util.warn("Output: " .. output, true) end - if not markup.insert_markup(file_path, opts) then + if not markup.insert_markup(file_path) then util.error("Could not insert markup code.") return false end