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