mirror of https://github.com/nodejs/node.git
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: https://github.com/nodejs/node/pull/22563 Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
This commit is contained in:
parent
f2338ed195
commit
c5bd856765
|
@ -39,7 +39,7 @@ function readDomainFromPacket(buffer, offset) {
|
|||
} else {
|
||||
// Pointer to another part of the packet.
|
||||
assert.strictEqual(length & 0xC0, 0xC0);
|
||||
// eslint-disable-next-line
|
||||
// eslint-disable-next-line space-infix-ops, space-unary-ops
|
||||
const pointeeOffset = buffer.readUInt16BE(offset) &~ 0xC000;
|
||||
return {
|
||||
nread: 2,
|
||||
|
|
Loading…
Reference in New Issue