Skip to content

Commit

Permalink
♻️ refactor(iterable): rename comparator variable (#241)
Browse files Browse the repository at this point in the history
  • Loading branch information
albertms10 committed Aug 4, 2023
1 parent 2b0de15 commit bdf9660
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/utils/iterable.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
int compareMultiple(Iterable<int Function()> comparators) {
assert(comparators.length > 1, 'Provide more than one comparator');
late int compareValue;
for (final comparable in comparators) {
compareValue = comparable();
for (final comparator in comparators) {
compareValue = comparator();
if (compareValue != 0) break;
}

Expand Down

0 comments on commit bdf9660

Please sign in to comment.