Skip to content

Commit

Permalink
reduce useless loops (#14513)
Browse files Browse the repository at this point in the history
  • Loading branch information
waynextz authored Dec 23, 2024
1 parent 4a6a9ed commit e704935
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,13 @@ public boolean hasNextDevice() {
boolean hasNext = false;
for (TsFileDeviceIterator iterator : deviceIteratorMap.values()) {
hasNext =
hasNext
|| iterator.hasNext()
iterator.hasNext()
|| (iterator.current() != null
&& !iterator.current().left.equals(currentDevice.left));

if (hasNext) {
break;
}
}
return hasNext;
}
Expand Down

0 comments on commit e704935

Please sign in to comment.