Specify the fields to make govet happy.

This commit is contained in:
Julien Laffaye 2015-03-05 11:49:26 +01:00
parent e177ecf60b
commit 816e28448f

2
ftp.go
View File

@ -258,7 +258,7 @@ func (c *ServerConn) cmdDataConn(format string, args ...interface{}) (net.Conn,
}
if code != StatusAlreadyOpen && code != StatusAboutToSend {
conn.Close()
return nil, &textproto.Error{code, msg}
return nil, &textproto.Error{Code: code, Msg: msg}
}
return conn, nil