#QUALITY by exept
authorClaus Gittinger <cg@exept.de>
Mon, 26 Aug 2019 10:21:02 +0200
changeset 24632 6a4473a8f19d
parent 24631 09c8eaa7f326
child 24633 0da8519100ae
#QUALITY by exept class: WriteStream changed: #nextPutByte: consistent return value
WriteStream.st
--- 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
     ].
 !