From d0d23282884197c255d18e1dc7d01e129f34cc34 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Thu, 7 May 2009 06:47:19 +0000 Subject: [PATCH] fixed indentation --- src/torrent.cpp | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/src/torrent.cpp b/src/torrent.cpp index 454efd962..0369f06be 100644 --- a/src/torrent.cpp +++ b/src/torrent.cpp @@ -2058,19 +2058,17 @@ namespace libtorrent { session_impl::mutex_t::scoped_lock l(m_ses.m_mutex); + if (ret == 0) { - if (ret == 0) - { - if (alerts().should_post()) - alerts().post_alert(file_renamed_alert(get_handle(), j.str, j.piece)); - m_torrent_file->rename_file(j.piece, j.str); - } - else - { - if (alerts().should_post()) - alerts().post_alert(file_rename_failed_alert(get_handle() - , j.piece, j.error)); - } + if (alerts().should_post()) + alerts().post_alert(file_renamed_alert(get_handle(), j.str, j.piece)); + m_torrent_file->rename_file(j.piece, j.str); + } + else + { + if (alerts().should_post()) + alerts().post_alert(file_rename_failed_alert(get_handle() + , j.piece, j.error)); } }