We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3656946 commit ac9c7d5Copy full SHA for ac9c7d5
internal/bucket/lifecycle.go
@@ -36,9 +36,7 @@ func PatchLifecyclePolicies(
36
37
byPrefix := map[string]*storage.BucketLifecyclePolicy{}
38
39
- if clear {
40
- // Clear means "start from empty", even if base had entries.
41
- } else {
+ if !clear {
42
// Seed from base. We only index by trimmed, non-empty prefixes.
43
// Note: shallow copy is sufficient because we don't mutate the
44
// existing policy objects; we only replace map entries or drop them.
0 commit comments