Skip to content

Commit

Permalink
Switch not needed because nil can be indeed the receiver
Browse files Browse the repository at this point in the history
  • Loading branch information
noha committed Jun 23, 2023
1 parent 988398f commit b909ee1
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions source/SnapDump-Core/SDException.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,7 @@ SDException >> initializeExceptionProperties [
{ #category : #initialization }
SDException >> initializeFromClassName: aName receiver: aReceiver method: aSmalltalkMethod [

exceptionSignalerClassName := aReceiver
ifNotNil: [ aReceiver class name asString ]
ifNil: [ aSmalltalkMethod classBinding value asString ].

exceptionSignalerClassName := aReceiver class name asString.
exceptionSignalerSelector := aSmalltalkMethod selector asString.
exceptionClassName := aName
]
Expand Down

0 comments on commit b909ee1

Please sign in to comment.