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
|
||||
@IBAction func isNotifyAboutNewArticlesChanged(_ sender: Any) {
|
||||
guard let settings = userNotificationSettings else {
|
||||
isNotifyAboutNewArticlesCheckBox.setNextState()
|
||||
guard userNotificationSettings != nil else {
|
||||
DispatchQueue.main.async {
|
||||
self.isNotifyAboutNewArticlesCheckBox.setNextState()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user