Resolved dead code warning by null checking the correct variable according to the associated log statement.

This commit is contained in:
Ian Brandt 2012-10-30 23:59:31 -07:00
parent 35f04b4df6
commit c5e2a88187

View File

@ -359,7 +359,7 @@ public class DruidMaster
DataSegment newDataSegment = sizeAdjuster.updateDescriptor(dataSegment);
if (dataSegment == null) {
if (newDataSegment == null) {
log.warn("newDataSegment was null with old dataSegment[%s]. Skipping.", dataSegment);
continue;
}