Skip to content

Commit

Permalink
Just some formatting while scanning code.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ducasse committed Sep 23, 2024
1 parent 29c9ca7 commit c4534dc
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions src/Microdown-BookTester/MicReferenceChecker.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,7 @@ MicReferenceChecker >> collectBadReferences [
| badReference existingAnchorNames |
existingAnchorNames := (anchors collect: [ :each | each anchorLabel ]).
badReference := references reject: [ :anchorReference |
existingAnchorNames includes:
anchorReference anchorLabel ].
existingAnchorNames includes: anchorReference anchorLabel ].
badReference do: [ :each | self addBadReferenceAnchor: each ]
]

Expand All @@ -122,9 +121,8 @@ MicReferenceChecker >> handleAnchorOf: anElement [
anElement hasAnchor ifFalse: [ ^ self ].
(self hasAlreadyDefinedAs: anElement)
ifTrue: [
duplicatedAnchors add: anElement .
self addDuplicatedAnchor: anElement .
].
duplicatedAnchors add: anElement.
self addDuplicatedAnchor: anElement ].
anchors add: anElement

]
Expand Down Expand Up @@ -229,10 +227,10 @@ MicReferenceChecker >> unknownAnchors [
| unknown ref |
unknown := OrderedCollection new.
ref := references copy.
ref do: [ :ref |
ref do: [ :reference |
(anchors noneSatisfy: [ :each |
ref anchorLabel = each anchorLabel ])
ifTrue: [ unknown add: ref ] ].
ifTrue: [ unknown add: reference ] ].
^ unknown
]

Expand All @@ -243,8 +241,7 @@ MicReferenceChecker >> visitAnchor: anAnchor [
isAlready := self hasAlreadyDefinedAs: anAnchor.
isAlready ifTrue: [
duplicatedAnchors add: anAnchor.
self addDuplicatedAnchor: anAnchor
].
self addDuplicatedAnchor: anAnchor ].
anchors add: anAnchor
]

Expand Down

0 comments on commit c4534dc

Please sign in to comment.