removed unnecessary loop

This commit is contained in:
Vadim 2024-04-26 22:11:44 +02:00
parent 628ed6274f
commit 5e0f352bfb

View file

@ -174,9 +174,7 @@ class MeteringContainerBuidler extends StatelessWidget {
if (itemsCount <= 0) { if (itemsCount <= 0) {
itemsCount = apertureValues.length; itemsCount = apertureValues.length;
} else { } else {
while (apertureValues[itemsCount - 1 + apertureOffset] != apertureValues.last) { itemsCount += (apertureValues.length - 1) - (itemsCount - 1 + apertureOffset);
itemsCount += 1;
}
} }
final exposurePairs = List.generate( final exposurePairs = List.generate(