mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 12:07:55 +00:00
swiftformat now enforces newlines for ifs
This commit is contained in:
@@ -43,7 +43,9 @@ struct PINTextField: View {
|
||||
|
||||
func sanitize(_ pinCode: String) -> String {
|
||||
var sanitized = pinCode
|
||||
if sanitized.count > maxLength { sanitized = String(pinCode.prefix(maxLength)) }
|
||||
if sanitized.count > maxLength {
|
||||
sanitized = String(pinCode.prefix(maxLength))
|
||||
}
|
||||
return sanitized.filter(\.isNumber)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user