diff --git a/cmd/data-crawler.go b/cmd/data-crawler.go index 09b1f52c3..ad899d8d0 100644 --- a/cmd/data-crawler.go +++ b/cmd/data-crawler.go @@ -350,7 +350,7 @@ func (f *folderScanner) scanQueuedLevels(ctx context.Context, folders []cachedFo // If there are lifecycle rules for the prefix, remove the filter. filter := f.withFilter var activeLifeCycle *lifecycle.Lifecycle - if f.oldCache.Info.lifeCycle != nil && filter != nil { + if f.oldCache.Info.lifeCycle != nil { _, prefix := path2BucketObjectWithBasePath(f.root, folder.name) if f.oldCache.Info.lifeCycle.HasActiveRules(prefix, true) { if f.dataUsageCrawlDebug {