Golint fix (#1475)

Golint fix to make goreportcard happy

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
This commit is contained in:
Yong Tang
2018-01-30 09:31:39 -08:00
committed by GitHub
parent 09d4a9c22c
commit 2b268134e9

View File

@@ -62,10 +62,7 @@ func (dio *dnstapIO) newConnect() error {
}
}
if err = dio.enc.resetWriter(dio.conn); err != nil {
return err
}
return nil
return dio.enc.resetWriter(dio.conn)
}
// Connect connects to the dnstop endpoint.