Some go vet cleanup (#869)

Some `go vet` cleanup

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
This commit is contained in:
Yong Tang
2017-08-09 11:00:03 -07:00
committed by Miek Gieben
parent 654d127a24
commit fefc4374d7
3 changed files with 3 additions and 5 deletions

View File

@@ -132,8 +132,6 @@ func nextHandler(mm map[string]int) test.Handler {
default:
panic("nextHandler: unhandled rcode")
}
return dns.RcodeServerFailure, nil
})
}
@@ -159,7 +157,7 @@ func TestInSearchPath(t *testing.T) {
for i, tc := range tests {
got := a.FirstInSearchPath(tc.qname)
if got != tc.b {
t.Errorf("Test %d, got %d, expected %d", i, got, tc.b)
t.Errorf("Test %d, got %v, expected %v", i, got, tc.b)
}
}
}