Remove actualNoOperation and enforce style guide

This commit is contained in:
EncodedVenom 2024-07-08 10:02:34 -04:00
parent a2f5c4e87d
commit eb35463f6d
No known key found for this signature in database
GPG key ID: 55A4643DA68078EF

View file

@ -655,14 +655,14 @@ local function get(world: World, entityId: i53, a: i53, b: i53?, c: i53?, d: i53
end end
end end
-- the less creation the better local function noop()
local function actualNoOperation() end return nil
local function noop(_self: Query, ...): () -> ()
return actualNoOperation :: any
end end
local EmptyQuery = { local EmptyQuery = {
__iter = noop, __iter = function()
return noop
end,
next = noop, next = noop,
replace = noop, replace = noop,
without = function(self) without = function(self)