1
0
mirror of https://github.com/danog/amp.git synced 2024-12-03 09:57:51 +01:00

Don't re-wrap stream

This commit is contained in:
Aaron Piotrowski 2020-05-13 16:51:36 -05:00
parent 6283d9bbb7
commit 1b4863b7b3
No known key found for this signature in database
GPG Key ID: ADD1EF783EDE9EEB
2 changed files with 2 additions and 2 deletions

View File

@ -60,7 +60,7 @@ final class AsyncGenerator implements Stream
*/
public function transform(): TransformationStream
{
return new TransformationStream($this);
return $this->generator->transform();
}
/**

View File

@ -51,6 +51,6 @@ class AutoDisposingStream implements Stream
*/
public function transform(): TransformationStream
{
return new TransformationStream($this);
return $this->stream->transform();
}
}