diff --git a/pkg/services/cleanup/cleanup.go b/pkg/services/cleanup/cleanup.go index ce63c41e08f..72b62cc4894 100644 --- a/pkg/services/cleanup/cleanup.go +++ b/pkg/services/cleanup/cleanup.go @@ -236,6 +236,7 @@ func (srv *CleanUpService) shouldCleanupTempFile(filemtime time.Time, now time.T func (srv *CleanUpService) deleteExpiredSnapshots(ctx context.Context) { logger := srv.log.FromContext(ctx) + //nolint:staticcheck // not yet migrated to OpenFeature if srv.Features.IsEnabledGlobally(featuremgmt.FlagKubernetesSnapshots) { srv.deleteKubernetesExpiredSnapshots(ctx) } else {