go lint/vet/misspell cleanup (#1105)

This fix address several issues related to golint/vet/misspell.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
This commit is contained in:
Yong Tang
2017-09-22 16:13:04 -07:00
committed by GitHub
parent 6f19dda0b4
commit 387ceb480b
5 changed files with 6 additions and 12 deletions

View File

@@ -9,11 +9,9 @@ func sendOneTCP(tcp *TCP) error {
if _, err := tcp.Write([]byte("frame")); err != nil {
return err
}
if err := tcp.Flush(); err != nil {
return err
}
return nil
return tcp.Flush()
}
func TestTCP(t *testing.T) {
tcp := NewTCP("localhost:14000")