Skip to content

Commit 2d458c8

Browse files
committed
refactor: avoid _G qualifier when not needed
1 parent 2df38e0 commit 2d458c8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lua/wincent/commandt/private/mocks/vim/inspect.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ function M.setup()
88
_G.vim = {}
99
end
1010

11-
_G.vim.inspect = function(value)
11+
vim.inspect = function(value)
1212
return '<inspect:' .. type(value) .. '>'
1313
end
1414
end

lua/wincent/commandt/private/mocks/vim/iter.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function M.setup()
4545
return self._list
4646
end
4747

48-
_G.vim.iter = function(list)
48+
vim.iter = function(list)
4949
return Iter.new(list)
5050
end
5151
end

0 commit comments

Comments
 (0)