Update SwiftLint to version 0.52.x, fix new violations or disable them (#618)

This commit is contained in:
Danny Mösch 2023-06-25 19:21:45 +02:00 committed by GitHub
parent d9bd0f3014
commit ba1a81170b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 16 additions and 10 deletions

View file

@ -105,7 +105,8 @@ extension NSDictionary {
return host
}
return value
} else if let value = self[NSExtensionJavaScriptPreprocessingResultsKey] as? String {
}
if let value = self[NSExtensionJavaScriptPreprocessingResultsKey] as? String {
if let host = URL(string: value)?.host {
return host
}