1
0
mirror of https://github.com/rclone/rclone.git synced 2025-12-06 00:03:32 +00:00

build: fix lint errors when re-enabling revive exported & package-comments

This commit is contained in:
Nick Craig-Wood
2023-08-29 13:02:34 +01:00
parent feaa20d885
commit e953598987
7 changed files with 21 additions and 15 deletions

View File

@@ -276,18 +276,22 @@ func (o MetadataOption) Mandatory() bool {
return false
}
// ChunkOption defines an Option which returns a preferred chunk size
type ChunkOption struct {
ChunkSize int64
}
// Header formats the option as an http header
func (o *ChunkOption) Header() (key string, value string) {
return "chunkSize", fmt.Sprintf("%v", o.ChunkSize)
}
// Mandatory returns whether the option must be parsed or can be ignored
func (o *ChunkOption) Mandatory() bool {
return false
}
// String formats the option into human-readable form
func (o *ChunkOption) String() string {
return fmt.Sprintf("ChunkOption(%v)", o.ChunkSize)
}