chore: satisfy review-fix formatting and unused-code checks

Signed-off-by: Feng Ruohang <rh@vonng.com>
This commit is contained in:
Feng Ruohang
2026-11-07 01:12:40 +08:00
parent b524fc4fb7
commit 6434d768de
6 changed files with 26 additions and 23 deletions
@@ -634,7 +634,6 @@ func TestPoolsLifecycleMissingVersion(t *testing.T) {
// The completeness checks also hold where a set has fewer answering drives
// than a read quorum or no version reaches one.
func TestPoolsLifecycleHistoryEarlyReturns(t *testing.T) {
// Seven drives hold the key, the other nine do not have it at all.
t.Run("minority-copy-only", func(t *testing.T) {
s := newSplitILM(t, versioning.Enabled, splitILMRules)
@@ -1245,14 +1244,6 @@ func TestPoolsLifecycleNullGenerations(t *testing.T) {
}
}
// authoritySideEffects collects the version IDs that removal notifications
// and ILM expiry audit traces report.
func authoritySideEffects(t *testing.T, run func()) (notified, traced []string) {
t.Helper()
notified, traced, _ = authoritySideEffectsAll(t, run)
return notified, traced
}
// authoritySideEffectsAll also returns, by version ID, the result an ILM
// trace reports for an expiry that did not remove its version: "refused" or
// "failed". Such traces are not removal traces.