mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
fixed the unneeded return
statement warnings. (#31863)
This commit is contained in:
parent
f7669b5238
commit
d814d05539
15 changed files with 33 additions and 33 deletions
|
@ -49,7 +49,7 @@ impl CryptoMethods for Crypto {
|
|||
let array_type = input.get_array_type();
|
||||
|
||||
if !is_integer_buffer(array_type) {
|
||||
return Err(Error::TypeMismatch);
|
||||
Err(Error::TypeMismatch)
|
||||
} else {
|
||||
let data = unsafe { input.as_mut_slice() };
|
||||
if data.len() > 65536 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue