mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
SwiftLint fixes. (#2899)
non_optional_string_data_conversion and static_over_final_class * Revert Data -> String changes for upcoming rule change.
This commit is contained in:
@@ -21,12 +21,12 @@ import UIKit
|
||||
import DeviceKit
|
||||
#endif
|
||||
|
||||
final class UserAgentBuilder {
|
||||
class func makeASCIIUserAgent() -> String {
|
||||
enum UserAgentBuilder {
|
||||
static func makeASCIIUserAgent() -> String {
|
||||
makeUserAgent()?.asciified() ?? "unknown"
|
||||
}
|
||||
|
||||
private class func makeUserAgent() -> String? {
|
||||
static func makeUserAgent() -> String? {
|
||||
let clientName = InfoPlistReader.app.bundleDisplayName
|
||||
let clientVersion = InfoPlistReader.app.bundleShortVersionString
|
||||
|
||||
|
||||
Reference in New Issue
Block a user