reformat some multi-line expressions

Honestly, some of this formatting seems a little weird, but it appears to thread the needle between the competing requirements of swiftformat's wrapMultilineStatementBraces rule and SwiftLint's opening_brace rule.
This commit is contained in:
Sixten Otto
2023-02-20 11:32:32 -07:00
parent 92fe2c5e33
commit f7168ff65a
11 changed files with 72 additions and 60 deletions

View File

@ -554,10 +554,11 @@ struct WebReaderContainerView: View {
func scrollToTop() {}
func openOriginalURL(urlString: String?) {
if let urlString = urlString,
let url = URL(string: urlString)
{
openURL(url)
}
guard
let urlString = urlString,
let url = URL(string: urlString)
else { return }
openURL(url)
}
}