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