chore: use stylua for formatting (#1040)

* chore: stylua job and config

* reformat with stylua
This commit is contained in:
Simon Hauser
2021-07-23 17:42:37 +02:00
committed by GitHub
parent 664690029f
commit 79644ab677
75 changed files with 3201 additions and 2809 deletions

View File

@@ -1,4 +1,3 @@
local LinkedList = {}
LinkedList.__index = LinkedList
@@ -27,7 +26,7 @@ end
local create_node = function(item)
return {
item = item
item = item,
}
end
@@ -122,7 +121,6 @@ function LinkedList:place_after(index, node, item)
new_node.next.prev = new_node
end
if self.track_at then
if index == self.track_at then
self._tracked_node = new_node
@@ -166,7 +164,6 @@ function LinkedList:place_before(index, node, item)
new_node.next.prev = new_node
end
if self.track_at then
if index == self.track_at - 1 then
self._tracked_node = node
@@ -176,7 +173,7 @@ function LinkedList:place_before(index, node, item)
elseif final_size > self.track_at then
self._tracked_node = self._tracked_node.prev
else
return
return
end
end
@@ -184,7 +181,6 @@ function LinkedList:place_before(index, node, item)
end
end
-- Do you even do this in linked lists...?
-- function LinkedList:remove(item)
-- end