Bug 1713523 - Remove 'else' after 'return' in CryptoBuffer. r=andi

Differential Revision: https://phabricator.services.mozilla.com/D116934
This commit is contained in:
Nayeem Hasan 2021-07-09 12:20:40 +00:00
parent 38d5c2e5bd
commit 7d2a7165b4

View File

@ -50,7 +50,8 @@ uint8_t* CryptoBuffer::Assign(const ArrayBufferView& aData) {
uint8_t* CryptoBuffer::Assign(const ArrayBufferViewOrArrayBuffer& aData) {
if (aData.IsArrayBufferView()) {
return Assign(aData.GetAsArrayBufferView());
} else if (aData.IsArrayBuffer()) {
}
if (aData.IsArrayBuffer()) {
return Assign(aData.GetAsArrayBuffer());
}
@ -63,7 +64,8 @@ uint8_t* CryptoBuffer::Assign(const ArrayBufferViewOrArrayBuffer& aData) {
uint8_t* CryptoBuffer::Assign(const OwningArrayBufferViewOrArrayBuffer& aData) {
if (aData.IsArrayBufferView()) {
return Assign(aData.GetAsArrayBufferView());
} else if (aData.IsArrayBuffer()) {
}
if (aData.IsArrayBuffer()) {
return Assign(aData.GetAsArrayBuffer());
}