Enable SwiftLint rule 'static_operator' and fix all violations

This commit is contained in:
Danny Moesch 2021-10-07 19:48:57 +02:00
parent 831ffe2235
commit b7e08dfb9e
3 changed files with 15 additions and 9 deletions

View file

@ -38,6 +38,9 @@ extension AdditionField {
}
infix operator =>: MultiplicationPrecedence
public func => (key: String, value: String) -> AdditionField {
AdditionField(title: key, content: value)
public extension String {
static func => (key: String, value: String) -> AdditionField {
AdditionField(title: key, content: value)
}
}