Skip to content

Commit

Permalink
white spaces...
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusDenker committed Oct 16, 2019
1 parent ee327ef commit ab23d72
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Collections-Abstract/Collection.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -794,10 +794,10 @@ Collection >> identityIncludes: anObject [
{ #category : #testing }
Collection >> ifEmpty: aBlock [
"Evaluate the given block, answering its value if the receiver is empty, otherwise answer the receiver."

"Note that the fact that this method returns its receiver in case the receiver is not empty allows one to write expressions like the following ones: self classifyMethodAs: (myProtocol ifEmpty: ['As yet unclassified'])"

^ self isEmpty
^ self isEmpty
ifTrue: [ aBlock value ]
ifFalse: [ self ]
]
Expand Down Expand Up @@ -830,7 +830,6 @@ Collection >> ifNotEmpty: notEmptyBlock ifEmpty: emptyBlock [
^ self isEmpty
ifTrue: [ emptyBlock value ]
ifFalse: [ notEmptyBlock cull: self ]

]

{ #category : #testing }
Expand Down

0 comments on commit ab23d72

Please sign in to comment.