1
0
mirror of https://blitiri.com.ar/repos/chasquid synced 2025-12-19 14:57:04 +00:00

Miscellaneous style fixes

This patch has some miscellaneous style fixes to issues found by the
staticcheck tool.

There are no functional changes.
This commit is contained in:
Alberto Bertogli
2019-02-10 12:46:15 +00:00
parent 582da79eca
commit ec95131bb4
6 changed files with 8 additions and 27 deletions

View File

@@ -213,7 +213,7 @@ func expect(conn *textproto.Conn, prefix string) error {
}
func write(conn *textproto.Conn, msg string) error {
_, err := fmt.Fprintf(conn.W, msg)
_, err := conn.W.Write([]byte(msg))
if err != nil {
return err
}