From 9b9df08a3f6eeffc8bafedc9e80369c5c202a68e Mon Sep 17 00:00:00 2001 From: Marcus Denker Date: Wed, 6 Dec 2023 15:34:14 +0100 Subject: [PATCH] this is https://github.com/pharo-project/pharo/issues/15596 for spec --- src/Spec2-Code-Commands/SpCodeDebugItCommand.class.st | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/Spec2-Code-Commands/SpCodeDebugItCommand.class.st b/src/Spec2-Code-Commands/SpCodeDebugItCommand.class.st index 16e76eef..3b27f095 100644 --- a/src/Spec2-Code-Commands/SpCodeDebugItCommand.class.st +++ b/src/Spec2-Code-Commands/SpCodeDebugItCommand.class.st @@ -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 ]