mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 23:02:20 +00:00
Bug 1713523 - Remove 'else' after 'return' in CryptoBuffer. r=andi
Differential Revision: https://phabricator.services.mozilla.com/D116934
This commit is contained in:
parent
38d5c2e5bd
commit
7d2a7165b4
@ -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());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user