1
0
mirror of https://github.com/danog/byte-stream.git synced 2024-11-30 04:19:23 +01:00

Improve readability, written is never larger than length

This commit is contained in:
Niklas Keller 2017-05-05 15:42:18 +02:00
parent 4b7a537d7b
commit 622f98c966

View File

@ -157,7 +157,7 @@ class ResourceOutputStream implements OutputStream {
return new Failure(new StreamException($message));
}
if ($length <= $written) {
if ($length === $written) {
if ($end) {
$this->close();
}