1
0
mirror of https://github.com/rclone/rclone.git synced 2025-12-20 02:03:17 +00:00

vendor: update github.com/pkg/sftp because dep insisted

This commit is contained in:
Nick Craig-Wood
2018-04-13 11:49:30 +01:00
parent ef412c1985
commit 18317a2747
7 changed files with 68 additions and 28 deletions

View File

@@ -152,9 +152,6 @@ func (r *Request) getLister() ListerAt {
// Close reader/writer if possible
func (r *Request) close() error {
if r.cancelCtx != nil {
r.cancelCtx()
}
rd := r.getReader()
if c, ok := rd.(io.Closer); ok {
return c.Close()
@@ -163,6 +160,9 @@ func (r *Request) close() error {
if c, ok := wt.(io.Closer); ok {
return c.Close()
}
if r.cancelCtx != nil {
r.cancelCtx()
}
return nil
}