#REFACTORING by stefan
authorStefan Vogel <sv@exept.de>
Thu, 22 Mar 2018 11:44:25 +0100
changeset 22647 8d71f14e06fa
parent 22646 f62d434f8c8c
child 22648 b1b967e91592
#REFACTORING by stefan class: ProtoObject changed: #ifNotNil:
ProtoObject.st
--- a/ProtoObject.st	Wed Mar 21 12:22:57 2018 +0100
+++ b/ProtoObject.st	Thu Mar 22 11:44:25 2018 +0100
@@ -790,12 +790,9 @@
 !
 
 ifNotNil:aBlockOrValue
-    (aBlockOrValue isBlockWithArgumentCount:1) ifTrue:[
-        ^ aBlockOrValue value:self.
-    ].
-    ^ aBlockOrValue value
+    ^ aBlockOrValue valueWithOptionalArgument:self
 
-    "Modified: / 18-03-2017 / 18:27:49 / stefan"
+    "Modified: / 22-03-2018 / 11:39:11 / stefan"
 !
 
 isBehavior