Rename 'continue' -> '_continue'.
parent
b2c4522f4a
commit
f460f9420f
8
rx.lua
8
rx.lua
|
@ -450,12 +450,12 @@ function Observable:catch(handler)
|
|||
return observer:onCompleted()
|
||||
end
|
||||
|
||||
local success, continue = pcall(handler, e)
|
||||
if success and continue then
|
||||
local success, _continue = pcall(handler, e)
|
||||
if success and _continue then
|
||||
if subscription then subscription:unsubscribe() end
|
||||
continue:subscribe(observer)
|
||||
_continue:subscribe(observer)
|
||||
else
|
||||
observer:onError(success and e or continue)
|
||||
observer:onError(success and e or _continue)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -21,12 +21,12 @@ function Observable:catch(handler)
|
|||
return observer:onCompleted()
|
||||
end
|
||||
|
||||
local success, continue = pcall(handler, e)
|
||||
if success and continue then
|
||||
local success, _continue = pcall(handler, e)
|
||||
if success and _continue then
|
||||
if subscription then subscription:unsubscribe() end
|
||||
continue:subscribe(observer)
|
||||
_continue:subscribe(observer)
|
||||
else
|
||||
observer:onError(success and e or continue)
|
||||
observer:onError(success and e or _continue)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue