mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-24 23:10:41 +02:00
minor
This commit is contained in:
1 parent
10f9081526
commit
854007bc98
1 file changed
+2
-2
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user