Skip to content

Commit 5bdf601

Browse files
committed
Remove Extra Closing Bracket
1 parent 475002d commit 5bdf601

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Sources/CodeEditTextView/EmphasisManager/EmphasisManager.swift

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -287,8 +287,7 @@ public final class EmphasisManager {
287287

288288
if let textLayer = textLayer, let textFadeAnimation = fadeAnimation.copy() as? CABasicAnimation {
289289
textLayer.add(textFadeAnimation, forKey: "fadeOutAnimation")
290-
textLayer.add(textFadeAnimation, forKey: "fadeOutAnimation")
291-
}
290+
textLayer.add(textFadeAnimation, forKey: "fadeOutAnimation")
292291
}
293292

294293
// Remove both layers after animation completes
@@ -297,7 +296,7 @@ public final class EmphasisManager {
297296
textLayer?.removeFromSuperlayer()
298297
}
299298
}
300-
299+
301300
/// Handles selection of text ranges for emphases where select is true
302301
private func handleSelections(for emphases: [Emphasis]) {
303302
let selectableRanges = emphases.filter(\.select).map(\.range)

0 commit comments

Comments
 (0)