Skip to content

Commit

Permalink
fixed off by 1 bug
Browse files Browse the repository at this point in the history
  • Loading branch information
escamoteur committed May 26, 2023
1 parent 081d1a0 commit 9740b13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/get_it_impl.dart
Original file line number Diff line number Diff line change
Expand Up @@ -920,10 +920,10 @@ class _GetItImplementation implements GetIt {
);

_Scope registrationScope;
int i = _scopes.length - 1;
int i = _scopes.length;
do {
registrationScope = _scopes[i];
i--;
registrationScope = _scopes[i];
} while (registrationScope.isFinal && i >= 0);
assert(
i >= 0,
Expand Down

0 comments on commit 9740b13

Please sign in to comment.