From 44e304179a4a4e82593798d7c97ca25b1168c689 Mon Sep 17 00:00:00 2001 From: Ice3man543 Date: Tue, 23 Nov 2021 13:15:24 +0530 Subject: [PATCH] Fixed a linter error --- v2/pkg/protocols/dns/dns.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/v2/pkg/protocols/dns/dns.go b/v2/pkg/protocols/dns/dns.go index 177a497b..c7dbd313 100644 --- a/v2/pkg/protocols/dns/dns.go +++ b/v2/pkg/protocols/dns/dns.go @@ -213,8 +213,6 @@ func questionTypeToInt(questionType string) uint16 { question = dns.TypeDS case "AAAA": question = dns.TypeAAAA - default: - question = dns.TypeA } return question } @@ -237,8 +235,6 @@ func classToInt(class string) uint16 { result = dns.ClassNONE case "ANY": result = dns.ClassANY - default: - result = dns.ClassINET } return uint16(result) }