Skip to content

Commit

Permalink
Merge pull request #1485 from MarcusDenker/cleanup-doItReceiver-check
Browse files Browse the repository at this point in the history
cleanup #doitReceiver check
  • Loading branch information
Ducasse committed Dec 10, 2023
2 parents fdeba46 + 9b9df08 commit 01ccf7c
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/Spec2-Code-Commands/SpCodeDebugItCommand.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,11 @@ SpCodeDebugItCommand >> compile: aStream for: anObject in: evalContext [
SpCodeDebugItCommand >> debug: aStream [

| method doItReceiver doItContext |
(self context respondsTo: #doItReceiver)
ifTrue: [
doItReceiver := self context doItReceiver.
doItContext := self context doItContext ]
ifFalse: [ doItReceiver := doItContext := nil ].
doItReceiver := self context doItReceiver.
doItContext := self context doItContext.

method := self compile: aStream for: doItReceiver in: doItContext.
method isNil ifTrue: [ ^ self ].
method ifNil: [ ^ self ].
self debug: method receiver: doItReceiver in: doItContext
]

Expand Down

0 comments on commit 01ccf7c

Please sign in to comment.