Add missing return value.

This commit is contained in:
Brent Simmons 2024-08-23 18:05:19 -07:00
parent 321339186f
commit a3c10165fa

View File

@ -14,7 +14,7 @@ extension String {
return self.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty ? nil : self return self.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty ? nil : self
} }
static func isEmptyOrNil(_ s: String?) { static func isEmptyOrNil(_ s: String?) -> Bool {
if let s { if let s {
return s.isEmpty return s.isEmpty
} }