Skip to content

Commit 230ff11

Browse files
authored
fix: set global variables to local (#1238)
1 parent 4971b97 commit 230ff11

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lua/neo-tree/collections.lua

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
local log = require("neo-tree.log")
22

3-
Node = {}
3+
local Node = {}
44
function Node:new(value)
55
local props = { prev = nil, next = nil, value = value }
66
setmetatable(props, self)
77
self.__index = self
88
return props
99
end
1010

11-
LinkedList = {}
11+
local LinkedList = {}
1212
function LinkedList:new()
1313
local props = { head = nil, tail = nil, size = 0 }
1414
setmetatable(props, self)
@@ -49,7 +49,7 @@ function LinkedList:remove_node(node)
4949
end
5050

5151
-- First in Last Out
52-
Queue = {}
52+
local Queue = {}
5353
function Queue:new()
5454
local props = { _list = LinkedList:new() }
5555
setmetatable(props, self)

0 commit comments

Comments
 (0)