mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 12:07:55 +00:00
Remove unreachable guard condition in String.asciified() (#4395)
This commit is contained in:
@@ -32,9 +32,6 @@ extension String {
|
||||
guard !isASCII else {
|
||||
return self
|
||||
}
|
||||
guard !canBeConverted(to: .ascii) else {
|
||||
return nil
|
||||
}
|
||||
let mutableString = NSMutableString(string: self)
|
||||
guard CFStringTransform(mutableString, nil, "Any-Latin; Latin-ASCII; [:^ASCII:] Remove" as CFString, false) else {
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user