Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
baines and github-actions[bot] authored Oct 28, 2023
1 parent 208c153 commit 6e7ad02
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/providers/twitch/TwitchAccount.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -268,14 +268,14 @@ void TwitchAccount::loadUserstateEmotes(std::weak_ptr<Channel> weakChannel)
std::set<QString> subscriberChannelIDs;
for (auto emoteSet : emoteSetArray)
{
IvrEmoteSet ivrEmoteSet(emoteSet.toObject());
IvrEmoteSet const ivrEmoteSet(emoteSet.toObject());
if (!ivrEmoteSet.tier.isNull())
{
subscriberChannelIDs.insert(ivrEmoteSet.channelId);
}
}

for (auto emoteSet : emoteData->emoteSets)
for (const auto& emoteSet : emoteData->emoteSets)
{
if (emoteSet->subscriber)
{
Expand Down Expand Up @@ -309,7 +309,7 @@ void TwitchAccount::loadUserstateEmotes(std::weak_ptr<Channel> weakChannel)
emoteSet->text = ivrEmoteSet.displayName;
emoteSet->subscriber = !ivrEmoteSet.tier.isNull();

bool haveSubscriberSetForChannel =
bool const haveSubscriberSetForChannel =
subscriberChannelIDs.contains(ivrEmoteSet.channelId);

for (const auto &emoteObj : ivrEmoteSet.emotes)
Expand Down

0 comments on commit 6e7ad02

Please sign in to comment.