Bug 1197215 - Remove now unnecessary uses of ok in the predictor. r=hurley

This commit is contained in:
Sylvestre Ledru 2015-08-21 20:38:58 +02:00
Родитель 3aee5343dc
Коммит e12068b89d
1 изменённых файлов: 3 добавлений и 3 удалений

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

@ -1515,7 +1515,7 @@ Predictor::SpaceCleaner::OnMetaDataElement(const char *key, const char *value)
nsCString uri;
nsresult rv = parsedURI->GetAsciiSpec(uri);
uint32_t uriLength = uri.Length();
if (ok && NS_SUCCEEDED(rv) &&
if (NS_SUCCEEDED(rv) &&
uriLength > mPredictor->mMaxURILength) {
// Default to getting rid of URIs that are too long and were put in before
// we had our limit on URI length, in order to free up some space.
@ -1525,9 +1525,9 @@ Predictor::SpaceCleaner::OnMetaDataElement(const char *key, const char *value)
return NS_OK;
}
if (!ok || !mLRUKeyToDelete || lastHit < mLRUStamp) {
if (!mLRUKeyToDelete || lastHit < mLRUStamp) {
mLRUKeyToDelete = key;
mLRUStamp = ok ? lastHit : 0;
mLRUStamp = lastHit;
}
return NS_OK;