chore(clipboard): accept nil (#371)

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
This commit is contained in:
Aaron Pham
2024-08-29 13:14:19 -04:00
committed by GitHub
parent ef174bbc2c
commit 33dc1ed470

View File

@@ -39,8 +39,9 @@ M.setup = function()
end end
end end
---@param line string ---@param line? string
M.paste_image = function(line) M.paste_image = function(line)
line = line or nil
if not Config.support_paste_image() then if not Config.support_paste_image() then
return false return false
end end