Skip to content

Commit

Permalink
cppcheck: Fix "duplicate condition" warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
linuxdude42 committed Jul 10, 2022
1 parent c2e02c8 commit 2e0a6d8
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions mythtv/libs/libmythmetadata/metadatacommon.cpp
Expand Up @@ -522,17 +522,14 @@ void CreateMetadataXMLItem(MetadataLookup *lookup,
item.appendChild(status);
status.appendChild(docroot.createTextNode(lookup->GetStatus()));
}
// Season
// Season and Episode
if (lookup->GetSeason() > 0 || lookup->GetEpisode() > 0)
{
QDomElement season = docroot.createElement("season");
item.appendChild(season);
season.appendChild(docroot.createTextNode(
QString::number(lookup->GetSeason())));
}
// Episode
if (lookup->GetSeason() > 0 || lookup->GetEpisode() > 0)
{

QDomElement episode = docroot.createElement("episode");
item.appendChild(episode);
episode.appendChild(docroot.createTextNode(
Expand Down

0 comments on commit 2e0a6d8

Please sign in to comment.