Skip to content

Commit

Permalink
ChunkSize is uint so only need to check for 0
Browse files Browse the repository at this point in the history
  • Loading branch information
scottf committed Aug 30, 2022
1 parent b9cc941 commit c9136ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion object.go
Expand Up @@ -316,7 +316,7 @@ func (obs *obs) Put(meta *ObjectMeta, r io.Reader, opts ...ObjectOpt) (*ObjectIn
meta.Opts = &ObjectMetaOptions{ChunkSize: objDefaultChunkSize}
} else if meta.Opts.Link != nil {
return nil, ErrLinkNotAllowed
} else if meta.Opts.ChunkSize <= 0 {
} else if meta.Opts.ChunkSize == 0 {
meta.Opts.ChunkSize = objDefaultChunkSize
}

Expand Down

0 comments on commit c9136ca

Please sign in to comment.