forked from TrueCloudLab/rclone
mockobject: fix SetUnknownSize method to obey parameter passed in
This commit is contained in:
parent
bb88b8499b
commit
72dfdd97d8
1 changed files with 1 additions and 1 deletions
|
@ -119,7 +119,7 @@ func (o *ContentMockObject) SetFs(f fs.Fs) {
|
||||||
|
|
||||||
// SetUnknownSize makes the mock object return -1 for size if true
|
// SetUnknownSize makes the mock object return -1 for size if true
|
||||||
func (o *ContentMockObject) SetUnknownSize(unknownSize bool) {
|
func (o *ContentMockObject) SetUnknownSize(unknownSize bool) {
|
||||||
o.unknownSize = true
|
o.unknownSize = unknownSize
|
||||||
}
|
}
|
||||||
|
|
||||||
// Fs returns read only access to the Fs that this object is part of
|
// Fs returns read only access to the Fs that this object is part of
|
||||||
|
|
Loading…
Add table
Reference in a new issue