Skip to content

Commit

Permalink
Fix SwiftLint warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Eitot committed Sep 13, 2024
1 parent a9997b0 commit 01ffe95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Vienna/Sources/Main window/BrowserTab+RSSSource.swift
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ extension BrowserTab: RSSSource {
}
}

@IBAction private func subscribe(_ sender: NSObject? = nil) {
@IBAction private func subscribe(_ sender: Any) {
if let rssSubscriber = self.rssSubscriber, !self.rssUrls.isEmpty {
if let sender = sender, sender as? NSView != nil || sender as? NSCell != nil {
if let sender = sender as? NSObject {
rssSubscriber.subscribeToRSS(self.rssUrls, uiElement: sender)
} else {
rssSubscriber.subscribeToRSS(self.rssUrls)
Expand Down

0 comments on commit 01ffe95

Please sign in to comment.