diff --git a/src/session_handle.cpp b/src/session_handle.cpp index 3cc1a29dd6..82032f76a8 100644 --- a/src/session_handle.cpp +++ b/src/session_handle.cpp @@ -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(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)