mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-01-03 13:30:14 +01:00
Use conditional in guard statement instead of setting an unused variable
This commit is contained in:
parent
a0fea768bf
commit
be8fedbf11
@ -56,8 +56,10 @@ final class WebFeedInspectorViewController: NSViewController, Inspector {
|
|||||||
|
|
||||||
// MARK: Actions
|
// MARK: Actions
|
||||||
@IBAction func isNotifyAboutNewArticlesChanged(_ sender: Any) {
|
@IBAction func isNotifyAboutNewArticlesChanged(_ sender: Any) {
|
||||||
guard let settings = userNotificationSettings else {
|
guard userNotificationSettings != nil else {
|
||||||
isNotifyAboutNewArticlesCheckBox.setNextState()
|
DispatchQueue.main.async {
|
||||||
|
self.isNotifyAboutNewArticlesCheckBox.setNextState()
|
||||||
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user