mirror of
https://github.com/danog/amp.git
synced 2024-11-27 04:24:42 +01:00
Remove superfluous is_object() check
This commit is contained in:
parent
9a1581c91d
commit
fa080b66aa
@ -535,7 +535,7 @@ function __coroutinePromisify(CoroutineStruct $cs) : Promise {
|
||||
return new Success;
|
||||
}
|
||||
|
||||
if (is_object($yielded) && $yielded instanceof Promise) {
|
||||
if ($yielded instanceof Promise) {
|
||||
return $yielded;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user