Bug 1741451 - Replace inBytes.size == 0 with inBytes.empty(). r=keeler

Differential Revision: https://phabricator.services.mozilla.com/D131796
This commit is contained in:
dmeehan 2021-11-22 18:38:27 +00:00
parent 98767c3d56
commit 76b501598c

View File

@ -636,7 +636,7 @@ nsresult AbstractOSKeyStore::DoCipher(const UniquePK11SymKey& aSymKey,
// Build params.
// We need to get the IV from inBytes if we decrypt.
if (!encrypt && (inBytes.size() < mIVLength || inBytes.size() == 0)) {
if (!encrypt && (inBytes.size() < mIVLength || inBytes.empty())) {
return NS_ERROR_INVALID_ARG;
}