From 7b8c974decee9f9f673865798a06ac60a0e1ac79 Mon Sep 17 00:00:00 2001 From: albertony <12441419+albertony@users.noreply.github.com> Date: Fri, 24 Jun 2022 17:20:08 +0200 Subject: [PATCH] staticcheck: ineffective break statement --- vfs/vfs.go | 1 - 1 file changed, 1 deletion(-) 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