mirror of
https://github.com/apache/druid.git
synced 2025-02-17 07:25:02 +00:00
Resolved dead code warning by null checking the correct variable according to the associated log statement.
This commit is contained in:
parent
35f04b4df6
commit
c5e2a88187
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user