mirror of
https://github.com/Ukendio/jecs.git
synced 2025-04-25 01:20:04 +00:00
Remove actualNoOperation and enforce style guide
This commit is contained in:
parent
a2f5c4e87d
commit
eb35463f6d
1 changed files with 5 additions and 5 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue