mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Use self? instead of a more-verbose guard.
This commit is contained in:
@@ -292,10 +292,7 @@ extension DetailWebViewController: WKNavigationDelegate, WKUIDelegate {
|
||||
// so we stick with completion-based method.
|
||||
// https://forums.developer.apple.com/forums/thread/701553
|
||||
webView.evaluateJavaScript("window.scrollTo(0, \(windowScrollY));") { [weak self] _, _ in
|
||||
guard let self else {
|
||||
return
|
||||
}
|
||||
self.windowScrollY = nil
|
||||
self?.windowScrollY = nil
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user