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
-- the less creation the better
local function actualNoOperation() end
local function noop(_self: Query, ...): () -> ()
return actualNoOperation :: any
local function noop()
return nil
end
local EmptyQuery = {
__iter = noop,
__iter = function()
return noop
end,
next = noop,
replace = noop,
without = function(self)