mirror of https://github.com/status-im/js-waku.git
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…
Reference in New Issue