mirror of
https://github.com/minio/minio.git
synced 2025-11-20 18:06:10 -05:00
merge object lifecycle checks into usage crawler (#9579)
This commit is contained in:
@@ -124,7 +124,7 @@ func (e Expiration) IsDaysNull() bool {
|
||||
|
||||
// IsDateNull returns true if date field is null
|
||||
func (e Expiration) IsDateNull() bool {
|
||||
return e.Date == ExpirationDate{time.Time{}}
|
||||
return e.Date.Time.IsZero()
|
||||
}
|
||||
|
||||
// IsNull returns true if both date and days fields are null
|
||||
|
||||
Reference in New Issue
Block a user