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:
parent
4b7a537d7b
commit
622f98c966
@ -157,7 +157,7 @@ class ResourceOutputStream implements OutputStream {
|
||||
return new Failure(new StreamException($message));
|
||||
}
|
||||
|
||||
if ($length <= $written) {
|
||||
if ($length === $written) {
|
||||
if ($end) {
|
||||
$this->close();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user