Skip to content

Commit

Permalink
fix clang-tidy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
arvidn committed Jan 28, 2025
1 parent bb9daaf commit b5bbe05
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/session_handle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -347,12 +347,8 @@ namespace {
#ifndef BOOST_NO_EXCEPTIONS
torrent_handle session_handle::add_torrent(add_torrent_params&& params)
{
#ifndef BOOST_NO_EXCEPTIONS
if (params.save_path.empty())
aux::throw_ex<system_error>(error_code(errors::invalid_save_path));
#else
TORRENT_ASSERT_PRECOND(!params.save_path.empty());
#endif

#if TORRENT_ABI_VERSION < 3
if (!params.info_hashes.has_v1() && !params.info_hashes.has_v2() && !params.ti)
Expand Down

0 comments on commit b5bbe05

Please sign in to comment.