mirror of
https://github.com/rclone/rclone.git
synced 2025-12-11 22:14:05 +01:00
Use io.SeekStart/End/Current constants now for go1.7+ #2154
This commit is contained in:
@@ -107,9 +107,9 @@ func (cr *ChunkedReader) RangeSeek(offset int64, whence int, length int64) (int6
|
||||
|
||||
size := cr.o.Size()
|
||||
switch whence {
|
||||
case 0:
|
||||
case io.SeekStart:
|
||||
cr.offset = 0
|
||||
case 2:
|
||||
case io.SeekEnd:
|
||||
cr.offset = size
|
||||
}
|
||||
cr.chunkOffset = cr.offset + offset
|
||||
|
||||
Reference in New Issue
Block a user