1
0
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:
Daniel Lowrey 2015-03-28 10:03:27 -04:00
parent 9a1581c91d
commit fa080b66aa

View File

@ -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;
}