remove duplicate if (files.num_files() == 0)

This commit is contained in:
pavel.pimenov 2018-01-07 19:24:59 +03:00 committed by Arvid Norberg
parent 39144201db
commit 3e29968a92
1 changed files with 0 additions and 7 deletions

View File

@ -1015,13 +1015,6 @@ namespace {
m_files.set_piece_length(0); m_files.set_piece_length(0);
return false; return false;
} }
if (files.num_files() == 0)
{
ec = errors::no_files_in_torrent;
// mark the torrent as invalid
m_files.set_piece_length(0);
return false;
}
if (files.name().empty()) if (files.name().empty())
{ {
ec = errors::torrent_missing_name; ec = errors::torrent_missing_name;