From b5bbe057b7eaf1197467aabc0f60b1a198de7d35 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Tue, 28 Jan 2025 13:08:27 +0100 Subject: [PATCH] fix clang-tidy warning --- src/session_handle.cpp | 4 ---- 1 file changed, 4 deletions(-) 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)