fix: lifecycle XML parsing errors with Versioning (#9974)

This commit is contained in:
Anis Elleuch
2020-07-05 17:08:42 +01:00
committed by GitHub
parent d4af132fc4
commit 4cf80f96ad
4 changed files with 10 additions and 23 deletions

View File

@@ -204,9 +204,7 @@ func (lc Lifecycle) ComputeAction(obj ObjectOpts) Action {
if time.Now().After(expectedExpiryTime(obj.ModTime, rule.NoncurrentVersionExpiration.NoncurrentDays)) {
return DeleteVersionAction
}
return NoneAction
}
return NoneAction
}
// All other expiration only applies to latest versions