Browse Source

Specify the fields to make govet happy.

Julien Laffaye 10 years ago
parent
commit
816e28448f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ftp.go

+ 1 - 1
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