Skip to content

Commit

Permalink
refactor: avoid _G qualifier when not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
wincent committed Jan 17, 2025
1 parent 2df38e0 commit 2d458c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lua/wincent/commandt/private/mocks/vim/inspect.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ function M.setup()
_G.vim = {}
end

_G.vim.inspect = function(value)
vim.inspect = function(value)
return '<inspect:' .. type(value) .. '>'
end
end
Expand Down
2 changes: 1 addition & 1 deletion lua/wincent/commandt/private/mocks/vim/iter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function M.setup()
return self._list
end

_G.vim.iter = function(list)
vim.iter = function(list)
return Iter.new(list)
end
end
Expand Down

0 comments on commit 2d458c8

Please sign in to comment.