Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

staticcheck: ineffective break statement

albertony7b8c974decee
diff --git a/vfs/vfs.go b/vfs/vfs.go
index fc4eb1264..304e23756 100644
--- a/vfs/vfs.go
+++ b/vfs/vfs.go
@@ -369,7 +369,6 @@ func (vfs *VFS) WaitForWriters(timeout time.Duration) {
tick.Reset(tickTime)
select {
case <-tick.C:
- break
case <-deadline.C:
fs.Errorf(nil, "Exiting even though %d writers active and %d cache items in use after %v\n%s", writers, cacheInUse, timeout, vfs.cache.Dump())
return