Bug 1338086 - Remove useless else blocks in order to reduce complexity in uriloader/exthandler/unix/ r=froydnj

MozReview-Commit-ID: HvmyxEwsnrg

--HG--
extra : rebase_source : c277cf5deb99e6ed47eaccea899f830efb59220b
This commit is contained in:
Sylvestre Ledru 2017-02-09 15:27:10 +01:00
parent ce25a09be6
commit 40c53d8557

View File

@ -573,7 +573,8 @@ nsOSHelperAppService::GetExtensionsAndDescriptionFromMimetypesFile(const nsAStri
aDescription.Assign(Substring(descriptionStart, descriptionEnd));
mimeFile->Close();
return NS_OK;
} else if (NS_FAILED(rv)) {
}
if (NS_FAILED(rv)) {
LOG(("Failed to parse entry: %s\n", NS_LossyConvertUTF16toASCII(entry).get()));
}
@ -1113,11 +1114,11 @@ nsOSHelperAppService::GetHandlerAndDescriptionFromMailcapFile(const nsAString& a
// get out of here
mailcapFile->Close();
return NS_OK;
} else { // pretend that this match never happened
aDescription.Truncate();
aMozillaFlags.Truncate();
aHandler.Truncate();
}
// pretend that this match never happened
aDescription.Truncate();
aMozillaFlags.Truncate();
aHandler.Truncate();
}
}
// zero out the entry for the next cycle