mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 13:21:05 +00:00
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:
parent
ce25a09be6
commit
40c53d8557
@ -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,13 +1114,13 @@ nsOSHelperAppService::GetHandlerAndDescriptionFromMailcapFile(const nsAString& a
|
||||
// get out of here
|
||||
mailcapFile->Close();
|
||||
return NS_OK;
|
||||
} else { // pretend that this match never happened
|
||||
}
|
||||
// pretend that this match never happened
|
||||
aDescription.Truncate();
|
||||
aMozillaFlags.Truncate();
|
||||
aHandler.Truncate();
|
||||
}
|
||||
}
|
||||
}
|
||||
// zero out the entry for the next cycle
|
||||
entry.Truncate();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user