Skip to content

Commit

Permalink
tools: specify rules disabled in common/dns.js
Browse files Browse the repository at this point in the history
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 <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>
  • Loading branch information
Trott authored and targos committed Sep 3, 2018
1 parent bfdb28e commit 15b7f75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/common/dns.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 15b7f75

Please sign in to comment.