Skip to content

Commit

Permalink
fix: remove unnecessary alerts
Browse files Browse the repository at this point in the history
  • Loading branch information
yetone committed Aug 31, 2024
1 parent 3b13b5e commit 534b1e6
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lua/avante/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -247,11 +247,7 @@ M.support_paste_image = function(skip_warning)
return
end

local supported = Utils.has("img-clip.nvim") or Utils.has("img-clip")
if not supported then
Utils.warn("img-clip.nvim is not installed. Pasting image will be disabled.", { once = true })
end
return supported
return Utils.has("img-clip.nvim") or Utils.has("img-clip")
end

M.get_window_width = function()
Expand Down

0 comments on commit 534b1e6

Please sign in to comment.