mirror of
https://github.com/1bardesign/batteries.git
synced 2024-11-24 14:54:34 +00:00
remove a pointless comparison
This commit is contained in:
parent
ea5e6aecc5
commit
310af508bd
@ -65,7 +65,7 @@ end
|
|||||||
function state_machine:_call_and_transition(name, ...)
|
function state_machine:_call_and_transition(name, ...)
|
||||||
local r = self:_call(name, ...)
|
local r = self:_call(name, ...)
|
||||||
if type(r) == "string" and self:has_state(r) then
|
if type(r) == "string" and self:has_state(r) then
|
||||||
self:set_state(r, r == self.current_state_name)
|
self:set_state(r, true)
|
||||||
return nil
|
return nil
|
||||||
end
|
end
|
||||||
return r
|
return r
|
||||||
|
Loading…
Reference in New Issue
Block a user