Fixing condition check

This commit is contained in:
Ashwin Giridharan 2020-06-24 14:34:01 -07:00
parent b636edd007
commit 950faf7475

View file

@ -144,7 +144,7 @@ public class ShutdownTask implements ConsumerTask {
// if childshards is empty. When child shards is empty then either it is due to // if childshards is empty. When child shards is empty then either it is due to
// completed shard being reprocessed or we got RNF from service. // completed shard being reprocessed or we got RNF from service.
// For these cases enqueue the lease for deletion. // For these cases enqueue the lease for deletion.
if (isSuccess || !CollectionUtils.isNullOrEmpty(childShards)) { if (isSuccess || CollectionUtils.isNullOrEmpty(childShards)) {
leaseCleanupManager.enqueueForDeletion(leasePendingDeletion); leaseCleanupManager.enqueueForDeletion(leasePendingDeletion);
} }
} }