Skip to content

Commit cacf7f8

Browse files
Apply Pharo style cleanup
Co-authored-by: Codex <codex@openai.com>
1 parent 245c1f9 commit cacf7f8

2 files changed

Lines changed: 6 additions & 16 deletions

File tree

src/ArrowSyntaxRendering/ASRArrowSyntaxTextStyler.class.st

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,7 @@ ASRArrowSyntaxTextStyler >> defaultTextStyle [
106106
{ #category : 'private' }
107107
ASRArrowSyntaxTextStyler >> intervalFrom: start to: stop fitsIn: aText [
108108

109-
^ start isInteger and: [
110-
stop isInteger and: [ start >= 1 and: [ stop <= aText size ] ] ]
109+
^ start >= 1 and: [ start <= stop and: [ stop <= aText size ] ]
111110
]
112111

113112
{ #category : 'private' }

src/ArrowSyntaxRendering/RubShoutStylerDecorator.extension.st

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,9 @@ RubShoutStylerDecorator >> styler [
1717
"Answer the Shout styler, optionally using arrow rendering when ASRArrowSyntaxInstaller enables it."
1818

1919
^ styler ifNil: [
20-
| selectedClassOrMeta |
21-
selectedClassOrMeta := nil.
22-
styler := (self model isNotNil and: [
23-
(selectedClassOrMeta := self model
24-
selectedClassOrMetaClass)
25-
isNotNil ])
26-
ifTrue: [
27-
ASRArrowSyntaxInstaller
28-
stylerForDecorator: self
29-
selectedClassOrMetaClass: selectedClassOrMeta ]
30-
ifFalse: [
31-
ASRArrowSyntaxInstaller
32-
stylerForDecorator: self
33-
selectedClassOrMetaClass: nil ] ]
20+
styler := ASRArrowSyntaxInstaller
21+
stylerForDecorator: self
22+
selectedClassOrMetaClass:
23+
(self model ifNotNil: [ :theModel |
24+
theModel selectedClassOrMetaClass ]) ]
3425
]

0 commit comments

Comments
 (0)