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

@@ -24,7 +24,7 @@ func TestTrimZone(t *testing.T) {
for i, tc := range tests {
got, err := TrimZone(dns.Fqdn(tc.qname), dns.Fqdn(tc.zone))
if tc.err != nil && err == nil {
t.Errorf("Test %d, expected error got nil")
t.Errorf("Test %d, expected error got nil", i)
continue
}
if tc.err == nil && err != nil {