Skip to content

Commit

Permalink
Remove nilChecks
Browse files Browse the repository at this point in the history
  • Loading branch information
Paula-Kli authored and T4rikA committed Aug 2, 2020
1 parent 5e4f214 commit 4f725d3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
actions
BinaryMessageSend: aNode with: aBinaryMessageReceiver and: aBinaryMessage

| result |
| binaryMessageResult result |
binaryMessageResult := self value: aBinaryMessage.
result := self value: aBinaryMessageReceiver.
aBinaryMessage children first ifNotNil: [ result := result , ' ' , (self value: aBinaryMessage) ].
binaryMessageResult ifNotEmpty: [ result := result , ' ' , binaryMessageResult ].
^ result
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
actions
FinalStatement: aNode with: aLiteral and: aStatement and: anotherLiteral

| circumflex |
circumflex := aLiteral children first.
circumflex isNil
ifTrue: [ ^ self value: aStatement ]
ifFalse: [ ^ circumflex , ' ' , (self value: aStatement) ]
| circumflexResult result |
circumflexResult := self value: aLiteral.
result := self value: aStatement.
circumflexResult ifNotEmpty: [ result := circumflexResult , ' ' , result ].
^ result
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
"evaluate:startingFrom:" : "fau 6/7/2020 20:25",
"format:in:notifying:" : "TA 7/30/2020 18:07" },
"instance" : {
"BinaryMessageSend:with:and:" : "PK 7/5/2020 18:44",
"BinaryMessageSend:with:and:" : "PK 8/2/2020 08:12",
"BlockLiteralNormal:with:and:and:and:" : "TA 7/12/2020 18:19",
"ByteArrayLiteral:with:and:and:" : "fau 7/12/2020 21:07",
"CascadedMessages:with:and:and:" : "TA 7/31/2020 10:43",
"ExecutableCode:with:and:and:" : "fau 7/24/2020 10:11",
"ExpressionBinaryCascade:with:and:" : "TA 7/29/2020 15:00",
"ExpressionOperandCascade:with:and:" : "TA 7/29/2020 15:00",
"ExpressionUnaryCascade:with:and:" : "TA 7/29/2020 15:00",
"FinalStatement:with:and:and:" : "PK 7/5/2020 18:43",
"FinalStatement:with:and:and:" : "PK 8/2/2020 08:13",
"KeywordMessageSend:with:and:" : "PK 7/7/2020 11:45",
"LiteralArrayLiteral:with:and:and:" : "fau 7/12/2020 21:07",
"LiteralArrayLiteralInLiteralArray:with:and:and:and:" : "fau 7/12/2020 21:11",
Expand Down

0 comments on commit 4f725d3

Please sign in to comment.