Skip to content

Commit fa0fc8f

Browse files
Move nil guards before dependent work
Co-authored-by: Codex <codex@openai.com>
1 parent a84be87 commit fa0fc8f

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/ArrowSyntaxRendering/ASRArrowSyntaxTextStyler.class.st

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,6 @@ ASRArrowSyntaxTextStyler >> style: aText ast: ast [
121121
{ #category : 'private' }
122122
ASRArrowSyntaxTextStyler >> textStyleForArrowRendering [
123123

124-
view ifNotNil: [ ^ view textStyle ].
125-
^ self defaultTextStyle
124+
view ifNil: [ ^ self defaultTextStyle ].
125+
^ view textStyle
126126
]

src/ArrowSyntaxRendering/ASRSubstitutionFont.class.st

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,8 +246,8 @@ ASRSubstitutionFont >> installOn: aDisplayContext foregroundColor: foregroundCol
246246
{ #category : 'measuring' }
247247
ASRSubstitutionFont >> kerningLeft: leftCharacter right: rightCharacter [
248248

249-
(self hides: leftCharacter) ifTrue: [ ^ 0 ].
250249
rightCharacter ifNil: [ ^ 0 ].
250+
(self hides: leftCharacter) ifTrue: [ ^ 0 ].
251251
(self hides: rightCharacter) ifTrue: [ ^ 0 ].
252252
^ self baseFont
253253
kerningLeft: (self displayCharacterFor: leftCharacter)

0 commit comments

Comments
 (0)