bug 250255 : get rid of a redundant check of 'registry type' in GetSourceHomePageURL (addressing reviewer's comment I missed in the previous check-in)

This commit is contained in:
jshin%mailaps.org 2006-09-17 05:35:16 +00:00
Родитель a71cd28580
Коммит e4b2f13ece
1 изменённых файлов: 1 добавлений и 4 удалений

Просмотреть файл

@ -517,10 +517,7 @@ nsIEProfileMigrator::GetSourceHomePageURL(nsACString& aResult)
// read registry data
NS_NAMED_LITERAL_STRING(homeURLValName, "Start Page");
nsAutoString homeURLVal;
PRUint32 type;
if (NS_SUCCEEDED(regKey->GetValueType(homeURLValName, &type)) &&
type == nsIWindowsRegKey::TYPE_STRING &&
NS_SUCCEEDED(regKey->ReadStringValue(homeURLValName, homeURLVal))) {
if (NS_SUCCEEDED(regKey->ReadStringValue(homeURLValName, homeURLVal))) {
// Do we need this round-about way to get |homePageURL|?
// Perhaps, we do to have the form of URL under our control
// (cf. network.standard-url.escape-utf8)