This commit is contained in:
Sven Weidauer 2022-10-08 11:42:02 +02:00
parent dc00d87a32
commit d7d34812cf

View file

@ -33,7 +33,10 @@ private struct ImporterOption: CaseIterable, ExpressibleByArgument, CustomString
} }
init?(argument: String) { init?(argument: String) {
guard let found = Self.allCases.first(where: { $0.description.caseInsensitiveCompare(argument) == .orderedSame }) else { guard
let found = Self.allCases
.first(where: { $0.description.caseInsensitiveCompare(argument) == .orderedSame })
else {
return nil return nil
} }
self = found self = found