Skip to content

Commit

Permalink
make linter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
r10s committed Dec 18, 2024
1 parent f8e994c commit 81977a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deltachat-ios/Chat/Views/MessageLabel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -467,15 +467,15 @@ open class MessageLabel: UILabel {
}

internal func getCopyableLinkText(_ touchLocation: CGPoint) -> String? {
guard let (detectorType, value) = detectLink(touchLocation) else { return nil }
guard let (_, value) = detectLink(touchLocation) else { return nil }

switch value {
case let .link(url):
guard let url = url else { return nil }
return url.absoluteString
case let .phoneNumber(phoneNumber):
return phoneNumber
case let .custom(pattern, match):
case let .custom(_, match):
return match
case .addressComponents, .date, .transitInfoComponents:
return nil
Expand Down

0 comments on commit 81977a5

Please sign in to comment.