mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
minor
This commit is contained in:
parent
10f9081526
commit
854007bc98
|
@ -552,9 +552,9 @@ func (f *WebDavFile) Seek(offset int64, whence int) (int64, error) {
|
|||
|
||||
var err error
|
||||
switch whence {
|
||||
case 0:
|
||||
case io.SeekStart:
|
||||
f.off = 0
|
||||
case 2:
|
||||
case io.SeekEnd:
|
||||
if fi, err := f.fs.stat(ctx, f.name); err != nil {
|
||||
return 0, err
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue