Code Duplication    Length = 1-1 lines in 2 locations

node_modules/dns-packet/rcodes.js 1 location

@@ 28-28 (lines=1) @@
25
  return 'RCODE_' + rcode
26
}
27
28
exports.toRcode = function (code) {
29
  switch (code.toUpperCase()) {
30
    case 'NOERROR': return 0
31
    case 'FORMERR': return 1

node_modules/dns-packet/opcodes.js 1 location

@@ 28-28 (lines=1) @@
25
  return 'OPCODE_' + opcode
26
}
27
28
exports.toOpcode = function (code) {
29
  switch (code.toUpperCase()) {
30
    case 'QUERY': return 0
31
    case 'IQUERY': return 1