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

@@ -78,9 +78,5 @@ func (s *Socket) Close() error {
if err := s.enc.Flush(); err != nil {
return fmt.Errorf("flush: %s", err)
}
if err := s.enc.Close(); err != nil {
return err
}
return nil
return s.enc.Close()
}