fix: add eqeqeq lint rule (#5106)

This commit is contained in:
LongYinan
2023-11-29 04:43:31 +00:00
parent a843dcd851
commit 923844f302
12 changed files with 18 additions and 16 deletions

View File

@@ -42,7 +42,7 @@ function compare(yBinary: Buffer, jwstBinary: Buffer, strict = false): boolean {
function isEmptyBuffer(buf: Buffer): boolean {
return (
buf.length == 0 ||
buf.length === 0 ||
// 0x0000
(buf.length === 2 && buf[0] === 0 && buf[1] === 0)
);