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:
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user