Bug 1477540 - Use RemoveLastElement instead of PopLastElement r=bhackett

The later is only interesting when the returned value is used

MozReview-Commit-ID: 8CF5HSkcttf

--HG--
extra : rebase_source : deb1761dd017108c9dba1d831a996baf54c7f425
This commit is contained in:
Sylvestre Ledru 2018-07-22 16:23:57 +02:00
parent b2d36bc68a
commit c86ee15013

View File

@ -58,7 +58,7 @@ RemoteSpellcheckEngineChild::RecvNotifyOfCurrentDictionary(
}
mResponsePromises[aId] = nullptr;
while (mResponsePromises.Length() && !mResponsePromises.LastElement()) {
(void) mResponsePromises.PopLastElement();
mResponsePromises.RemoveLastElement();
}
return IPC_OK();
}