mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-21 20:14:08 +00:00
Stylua formatting (#785)
Uses Stylua to format all existing Lua files, and adds a CI check in `lint` to pin this improvement. Excludes formatting dependencies, of course.
This commit is contained in:
parent
840e9bedb2
commit
0f8e1625d5
52 changed files with 595 additions and 549 deletions
|
|
@ -401,7 +401,9 @@ end
|
|||
|
||||
-- Creates a deep copy of a tree for immutability purposes in Roact
|
||||
function PatchTree.clone(tree)
|
||||
if not tree then return end
|
||||
if not tree then
|
||||
return
|
||||
end
|
||||
|
||||
local newTree = Tree.new()
|
||||
tree:forEach(function(node)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue