Skip to content

Commit

Permalink
Remove warning
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarlatorre committed Feb 4, 2024
1 parent b63a8a0 commit 589ccd1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lua/project-urls/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ end
function M.open_url()
local index = vim.fn.line(".")

if content == nil then
return
end

for content_idx, url in ipairs(content) do
if index == content_idx then
vim.cmd(":silent! !open " .. url)
Expand Down

0 comments on commit 589ccd1

Please sign in to comment.