Commit 906e9fd3 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

MetadataParser: Remove tautology

parent b5ef5170
Pipeline #3477 passed with stages
in 10 minutes and 19 seconds
......@@ -1062,9 +1062,9 @@ bool MetadataAnalyzer::link( IItem& item, Album& album,
const auto discTotal = toInt( item, IItem::Metadata::DiscTotal );
const auto discNumber = toInt( item, IItem::Metadata::DiscNumber );
if ( ( discTotal != 0 && discTotal > 0 &&
if ( ( discTotal > 0 &&
static_cast<uint32_t>( discTotal ) > album.nbDiscs() ) ||
( discNumber != 0 && discNumber > 0 &&
( discNumber > 0 &&
static_cast<uint32_t>( discNumber ) > album.nbDiscs() ) )
{
album.setNbDiscs( std::max( discTotal, discNumber ) );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment