Document that closing two times doesn't do anything

This commit is contained in:
Davide D'Agostino 2017-05-04 19:03:56 -07:00
parent cb362c4101
commit 980e2e09a5

1
ftp.go
View File

@ -537,6 +537,7 @@ func (r *Response) Read(buf []byte) (int, error) {
}
// Close implements the io.Closer interface on a FTP data connection.
// After the first call, Close will do nothing and return nil.
func (r *Response) Close() error {
if r.closed {
return nil