forked from LittleChest/dns-packet
Fix several lint issues
This commit includes several fixes that addess lint issues introduced by commit a7a0b78b41219b40d28d71232f79f8170f528f30
This commit is contained in:
parent
dfe5e3f86b
commit
8d78b4b53a
4
index.js
4
index.js
@ -1621,8 +1621,8 @@ question.decode = function (buf, offset) {
|
|||||||
q.type = types.toString(buf.readUInt16BE(offset))
|
q.type = types.toString(buf.readUInt16BE(offset))
|
||||||
offset += 2
|
offset += 2
|
||||||
|
|
||||||
q.qu_bit = (buf.readUInt16BE(offset) & QU_MASK) != 0;
|
q.qu_bit = (buf.readUInt16BE(offset) & QU_MASK) !== 0
|
||||||
q.class = q.qu_bit ? classes.toString(buf.readUInt16BE(offset) - QU_MASK) : classes.toString(buf.readUInt16BE(offset));
|
q.class = q.qu_bit ? classes.toString(buf.readUInt16BE(offset) - QU_MASK) : classes.toString(buf.readUInt16BE(offset))
|
||||||
offset += 2
|
offset += 2
|
||||||
|
|
||||||
question.decode.bytes = offset - oldOffset
|
question.decode.bytes = offset - oldOffset
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user