Skip to content

Commit

Permalink
Swiftlint
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasstrba committed Oct 15, 2024
1 parent 756afd0 commit e5c864f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/Common/Extensions/URLExtension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ extension URL {
return true
}

// swiftlint:disable cyclomatic_complexity
/// URL and URLComponents can't cope with emojis and international characters so this routine does some manual processing while trying to
/// retain the input as much as possible.
public init?(trimmedAddressBarString: String) {
Expand Down Expand Up @@ -220,6 +221,7 @@ extension URL {

self.init(punycodeEncodedString: s)
}
// swiftlint:enable cyclomatic_complexity

private init?(punycodeEncodedString: String) {
var s = punycodeEncodedString
Expand Down

0 comments on commit e5c864f

Please sign in to comment.