"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
refactor: replace min/max helpers with built-in min/max
Eng Zer Jund1c84f9115fc
diff --git a/backend/swift/swift.go b/backend/swift/swift.goindex 53aab56d4..edc774248 100644--- a/backend/swift/swift.go+++ b/backend/swift/swift.go@@ -1410,14 +1410,6 @@ func (o *Object) Open(ctx context.Context, options ...fs.OpenOption) (in io.Readreturn}-// min returns the smallest of x, y-func min(x, y int64) int64 {- if x < y {- return x- }- return y-}-// Get the segments for a large object//// It returns the names of the segments and the container that they live indiff --git a/lib/ranges/ranges.go b/lib/ranges/ranges.goindex f72be5adf..d14377cef 100644--- a/lib/ranges/ranges.go+++ b/lib/ranges/ranges.go@@ -36,20 +36,6 @@ func (r *Range) Clip(offset int64) {}}-func min(a, b int64) int64 {- if a < b {- return a- }- return b-}--func max(a, b int64) int64 {- if a > b {- return a- }- return b-}-// Intersection returns the common Range for two Range~s//// If there is no intersection then the Range returned will have