Skip to content

Commit

Permalink
refactor(packer): global usage lint
Browse files Browse the repository at this point in the history
  • Loading branch information
axieax committed Dec 6, 2022
1 parent f8d3032 commit 53c53bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/urlview/search/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ end
---@return table (list) of strings (extracted links)
function M.packer()
local links = {}
-- selene: allow(undefined_variable)
for _, info in pairs(packer_plugins or {}) do
-- selene: allow(global_usage)
for _, info in pairs(_G.packer_plugins or {}) do
local fs_stat = vim.loop.fs_stat(info.url)
if not fs_stat or vim.tbl_isempty(fs_stat) then
table.insert(links, info.url)
Expand Down

0 comments on commit 53c53bc

Please sign in to comment.