Skip to content

Commit

Permalink
fix: set global variables to local (#1238)
Browse files Browse the repository at this point in the history
  • Loading branch information
cseickel committed Nov 18, 2023
1 parent 4971b97 commit 230ff11
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lua/neo-tree/collections.lua
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
local log = require("neo-tree.log")

Node = {}
local Node = {}
function Node:new(value)
local props = { prev = nil, next = nil, value = value }
setmetatable(props, self)
self.__index = self
return props
end

LinkedList = {}
local LinkedList = {}
function LinkedList:new()
local props = { head = nil, tail = nil, size = 0 }
setmetatable(props, self)
Expand Down Expand Up @@ -49,7 +49,7 @@ function LinkedList:remove_node(node)
end

-- First in Last Out
Queue = {}
local Queue = {}
function Queue:new()
local props = { _list = LinkedList:new() }
setmetatable(props, self)
Expand Down

0 comments on commit 230ff11

Please sign in to comment.