mirror of
https://github.com/waku-org/js-waku.git
synced 2025-01-28 21:25:27 +00:00
Simplify expression
This commit is contained in:
parent
13c8a0527b
commit
75d1b3834c
@ -222,14 +222,9 @@ function validateDataIntegrity(
|
||||
return false;
|
||||
}
|
||||
|
||||
if (
|
||||
expectedSize > 3 &&
|
||||
Buffer.from(value).equals(Buffer.alloc(value.length))
|
||||
) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
return !(
|
||||
expectedSize > 3 && Buffer.from(value).equals(Buffer.alloc(value.length))
|
||||
);
|
||||
}
|
||||
|
||||
function getSignature(message: Buffer): Buffer {
|
||||
|
Loading…
x
Reference in New Issue
Block a user