#QUALITY by exept
class: WriteStream
changed: #nextPutByte:
consistent return value
--- a/WriteStream.st Mon Aug 26 10:12:38 2019 +0200
+++ b/WriteStream.st Mon Aug 26 10:21:02 2019 +0200
@@ -667,7 +667,7 @@
__INST(readLimit) = __mkSmallInteger(pos);
}
__INST(position) = __mkSmallInteger(pos);
- RETURN ( anObject );
+ RETURN ( self );
}
} else if (cls == @global(ByteArray)) {
if (pos <= __byteArraySize(coll)) {
@@ -682,9 +682,9 @@
((writeLimit isNil or:[(position + 1) <= writeLimit])
and:[position >= collection size]) ifTrue:[
self growCollection.
- ^ self nextPutByte:anObject. "try again"
+ self nextPutByte:anObject. "try again"
] ifFalse:[
- ^ super nextPutByte:anObject
+ super nextPutByte:anObject
].
!