File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -134,9 +134,9 @@ void ChefChannelManager::HandleChangeChannel(CommandResponseHelper<ChangeChannel
134
134
{
135
135
matchedChannels[totalMatchedChannels++] = (channel);
136
136
}
137
- else if (matchedChannels. size () == 0 )
137
+ else if (totalMatchedChannels == 0 )
138
138
{
139
- // "index" is only used when we end up with matchedChannels.size() == 1.
139
+ // "index" is only used when we end up with totalMatchedChannels == 1.
140
140
// In that case, we want it to be the number of non-matching channels we saw before
141
141
// the matching one.
142
142
index ++;
@@ -146,12 +146,12 @@ void ChefChannelManager::HandleChangeChannel(CommandResponseHelper<ChangeChannel
146
146
ChangeChannelResponseType response;
147
147
148
148
// Error: Found multiple matches
149
- if (matchedChannels. size () > 1 )
149
+ if (totalMatchedChannels > 1 )
150
150
{
151
151
response.status = chip::app::Clusters::Channel::ChannelStatusEnum::kMultipleMatches ;
152
152
helper.Success (response);
153
153
}
154
- else if (matchedChannels. size () == 0 )
154
+ else if (totalMatchedChannels == 0 )
155
155
{
156
156
// Error: Found no match
157
157
response.status = chip::app::Clusters::Channel::ChannelStatusEnum::kNoMatches ;
You can’t perform that action at this time.
0 commit comments