fix: remove all unused code (#12360)

This commit is contained in:
Harshavardhana authored and GitHub committed 2021-05-24 09:28:19 -07:00
1 parent 41e9c6572f
commit ebf75ef10d
29 files changed
+29 -497

No files matched your search

+1 -1
View File
@@ -137,7 +137,7 @@ func (c *CoreDNS) list(key string, domain bool) ([]SrvRecord, error) {
var srvRecords []SrvRecord
for _, n := range r.Kvs {
var srvRecord SrvRecord
if err = json.Unmarshal([]byte(n.Value), &srvRecord); err != nil {
if err = json.Unmarshal(n.Value, &srvRecord); err != nil {
return nil, err
}
srvRecord.Key = strings.TrimPrefix(string(n.Key), key)