@@ -31,21 +31,21 @@ public final class LauncherSelectionPolicyFilterAware: NSObject, LauncherSelecti
3131 return ( update. url == nil && update. requestHeaders == nil ) || ( update. url == config. updateUrl && update. requestHeaders == config. requestHeaders)
3232 }
3333
34- if filterByChannel, let channelName = channelNameFromConfig ( ) , !channelName . isEmpty {
35- NSLog ( " [ChannelSwitch] Filtering updates for channel %@ " , channelName )
34+ if filterByChannel, let configuredChannelName = channelNameFromConfig ( ) , !configuredChannelName . isEmpty {
35+ NSLog ( " [ChannelSwitch] Filtering updates for channel %@ " , configuredChannelName )
3636 let channelFilteredUpdates = matchingUpdates. filter { update in
3737 guard let updateChannel = channelName ( for: update) else {
3838 return false
3939 }
40- return updateChannel == channelName
40+ return updateChannel == configuredChannelName
4141 }
4242
4343 if !channelFilteredUpdates. isEmpty {
44- NSLog ( " [ChannelSwitch] Found %d updates matching channel %@ " , channelFilteredUpdates. count, channelName )
44+ NSLog ( " [ChannelSwitch] Found %d updates matching channel %@ " , channelFilteredUpdates. count, configuredChannelName )
4545 return channelFilteredUpdates. sorted { $0. commitTime > $1. commitTime } . first
4646 }
4747
48- NSLog ( " [ChannelSwitch] No updates matched channel %@; falling back to unfiltered selection " , channelName )
48+ NSLog ( " [ChannelSwitch] No updates matched channel %@; falling back to unfiltered selection " , configuredChannelName )
4949 }
5050
5151 return matchingUpdates. sorted { $0. commitTime > $1. commitTime } . first
0 commit comments