Code Duplication    Length = 1-1 lines in 2 locations

node_modules/dns-packet/opcodes.js 1 location

@@ 6-6 (lines=1) @@
3
 * https://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml#dns-parameters-5
4
 */
5
6
exports.toString = function (opcode) {
7
  switch (opcode) {
8
    case 0: return 'QUERY'
9
    case 1: return 'IQUERY'

node_modules/dns-packet/rcodes.js 1 location

@@ 6-6 (lines=1) @@
3
 * https://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml
4
 */
5
6
exports.toString = function (rcode) {
7
  switch (rcode) {
8
    case 0: return 'NOERROR'
9
    case 1: return 'FORMERR'