Skip to content

Commit df4689b

Browse files
authored
Merge pull request pharo-spec#66 from vonbecmann/patch-1
extract return from SindarinDebugger>>#moveToNode:
2 parents e55f1e0 + f2cfbff commit df4689b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Sindarin/SindarinDebugger.class.st

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,9 +214,9 @@ SindarinDebugger >> moveToNode: aNode [
214214
(aNode == self methodNode or: [ aNode == self methodNode body ])
215215
ifTrue: [ firstPCForNode := self method endPC ]
216216
ifFalse: [
217-
self context ~~ self context home
218-
ifTrue: [ ^ self tryMoveToNodeInHomeContext: aNode ]
219-
ifFalse: [ ^ NodeNotInASTError signal ] ] ]
217+
^ self context ~~ self context home
218+
ifTrue: [ self tryMoveToNodeInHomeContext: aNode ]
219+
ifFalse: [ NodeNotInASTError signal ] ] ]
220220
ifNotNil: [ :parent |
221221
| nextNode |
222222
"If a node does not have any associated pc but this node is a child in the method node then, we go to the next node that will be executed (so in pre-order) and that has an associated pc in this context."

0 commit comments

Comments
 (0)