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:
4
vendor/github.com/pkg/sftp/packet-typing.go
generated
vendored
4
vendor/github.com/pkg/sftp/packet-typing.go
generated
vendored
@@ -127,7 +127,9 @@ func makePacket(p rxPacket) (requestPacket, error) {
|
||||
return nil, errors.Errorf("unhandled packet type: %s", p.pktType)
|
||||
}
|
||||
if err := pkt.UnmarshalBinary(p.pktBytes); err != nil {
|
||||
return nil, err
|
||||
// Return partially unpacked packet to allow callers to return
|
||||
// error messages appropriately with necessary id() method.
|
||||
return pkt, err
|
||||
}
|
||||
return pkt, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user