Skip to content

Commit ac9c7d5

Browse files
committed
refactor(bucket): simplify case
1 parent 3656946 commit ac9c7d5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

internal/bucket/lifecycle.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,7 @@ func PatchLifecyclePolicies(
3636

3737
byPrefix := map[string]*storage.BucketLifecyclePolicy{}
3838

39-
if clear {
40-
// Clear means "start from empty", even if base had entries.
41-
} else {
39+
if !clear {
4240
// Seed from base. We only index by trimmed, non-empty prefixes.
4341
// Note: shallow copy is sufficient because we don't mutate the
4442
// existing policy objects; we only replace map entries or drop them.

0 commit comments

Comments
 (0)