Skip to content

Commit

Permalink
switch labeled break for a simple return statement
Browse files Browse the repository at this point in the history
  • Loading branch information
mdavis95 committed Apr 15, 2023
1 parent df53c93 commit d927437
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public void handleFacets(OrdinalConsumer ordinalConsumer) {
if (ordinalBuffer.hasRemaining()) {
int storedDimOrdinal = -1;
int storedOrdinalLengthForDim = 0;
outer:

for (int requestedDimOrdinal : requestDimensionOrdinals) {

while (storedDimOrdinal < requestedDimOrdinal) {
Expand All @@ -27,7 +27,7 @@ public void handleFacets(OrdinalConsumer ordinalConsumer) {
}

if (!ordinalBuffer.hasRemaining()) {
break outer;
return;
}

storedDimOrdinal = ordinalBuffer.get();
Expand Down

0 comments on commit d927437

Please sign in to comment.