forked from TrueCloudLab/rclone
vendor: update github.com/pkg/sftp because dep insisted
This commit is contained in:
parent
ef412c1985
commit
18317a2747
7 changed files with 68 additions and 28 deletions
6
vendor/github.com/pkg/sftp/request.go
generated
vendored
6
vendor/github.com/pkg/sftp/request.go
generated
vendored
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue