mirror of
https://github.com/pgsty/minio.git
synced 2026-10-08 18:55:58 +03: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