From 816e28448f9703bec7b40c872f039fabeaa687b7 Mon Sep 17 00:00:00 2001 From: Julien Laffaye Date: Thu, 5 Mar 2015 11:49:26 +0100 Subject: [PATCH] Specify the fields to make govet happy. --- ftp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ftp.go b/ftp.go index 5fe19fe..c7ba2f4 100644 --- a/ftp.go +++ b/ftp.go @@ -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