Skip to content

Commit 15b7f75

Browse files
Trotttargos
authored andcommitted
tools: specify rules disabled in common/dns.js
Instead of disabling all ESLint rules for a line, specify the two rules that should be disabled. PR-URL: #22563 Reviewed-By: Vse Mozhet Byt <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
1 parent bfdb28e commit 15b7f75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/common/dns.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ function readDomainFromPacket(buffer, offset) {
3939
} else {
4040
// Pointer to another part of the packet.
4141
assert.strictEqual(length & 0xC0, 0xC0);
42-
// eslint-disable-next-line
42+
// eslint-disable-next-line space-infix-ops, space-unary-ops
4343
const pointeeOffset = buffer.readUInt16BE(offset) &~ 0xC000;
4444
return {
4545
nread: 2,

0 commit comments

Comments
 (0)