From 30b49676978652eae985c46f0ae82fe3b7c4f228 Mon Sep 17 00:00:00 2001 From: Ted Percival Date: Sun, 27 Mar 2005 13:42:09 +0000 Subject: [PATCH] improve readability --- stepmania/src/ProfileManager.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/stepmania/src/ProfileManager.cpp b/stepmania/src/ProfileManager.cpp index 687ead88bc..5eb509b464 100644 --- a/stepmania/src/ProfileManager.cpp +++ b/stepmania/src/ProfileManager.cpp @@ -243,12 +243,8 @@ bool ProfileManager::RenameLocalProfile( CString sProfileID, CString sNewName ) if( lr != Profile::success ) return false; pro.m_sDisplayName = sNewName; - bool bSuccess; - bSuccess = pro.SaveAllToDir( sProfileDir, PREFSMAN->m_bSignProfileData ); - if( !bSuccess ) - return false; - return true; + return pro.SaveAllToDir( sProfileDir, PREFSMAN->m_bSignProfileData ); } bool ProfileManager::DeleteLocalProfile( CString sProfileID )