refactor: omit unnecessary reference in magnet metadata progress (#6311)

This commit is contained in:
Cœur 2023-11-29 00:52:10 +01:00 committed by GitHub
parent ed4fad9b18
commit f85c3b6f8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -382,7 +382,7 @@ double tr_torrentGetMetadataPercent(tr_torrent const* tor)
if (auto const& m = tor->incomplete_metadata; m)
{
if (auto const& n = m->piece_count; n != 0)
if (auto const n = m->piece_count; n != 0)
{
return (n - std::size(m->pieces_needed)) / static_cast<double>(n);
}