mirror of
https://github.com/rclone/rclone.git
synced 2025-08-15 16:22:47 +02:00
build: replace the deprecated golint linter with revive
This fixes up a small number of new lint items also
This commit is contained in:
@ -1260,7 +1260,7 @@ func (o *Object) Open(ctx context.Context, options ...fs.OpenOption) (rc io.Read
|
||||
return o.Object.Open(ctx, options...)
|
||||
}
|
||||
// Get offset and limit from OpenOptions, pass the rest to the underlying remote
|
||||
var openOptions []fs.OpenOption = []fs.OpenOption{&fs.SeekOption{Offset: 0}}
|
||||
var openOptions = []fs.OpenOption{&fs.SeekOption{Offset: 0}}
|
||||
var offset, limit int64 = 0, -1
|
||||
for _, option := range options {
|
||||
switch x := option.(type) {
|
||||
|
@ -132,7 +132,7 @@ func (o *Object) Open(ctx context.Context, options ...fs.OpenOption) (_ io.ReadC
|
||||
// Convert the semantics of HTTP range headers to an offset and length
|
||||
// that libuplink can use.
|
||||
var (
|
||||
offset int64 = 0
|
||||
offset int64
|
||||
length int64 = -1
|
||||
)
|
||||
|
||||
|
@ -304,7 +304,7 @@ func (f *Fs) List(ctx context.Context, dir string) (entries fs.DirEntries, err e
|
||||
|
||||
var limit uint64 = 100 // max number of objects per request - 100 seems to be the maximum the api accepts
|
||||
var page uint64 = 1
|
||||
var offset uint64 = 0 // for the next page of requests
|
||||
var offset uint64 // for the next page of requests
|
||||
|
||||
for {
|
||||
opts := &api.MetadataRequestOptions{
|
||||
|
Reference in New Issue
Block a user