Skip to content

Commit

Permalink
Update formatted files
Browse files Browse the repository at this point in the history
  • Loading branch information
escamoteur authored and github-actions[bot] committed Apr 15, 2024
1 parent 6822965 commit 33ae250
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions lib/get_it_impl.dart
Original file line number Diff line number Diff line change
Expand Up @@ -585,11 +585,11 @@ class _GetItImplementation implements GetIt {
Type? type,
}) async {
assert(
type == null || type is T,
'The type you passed is not a $T. This can happen '
type == null || type is T,
'The type you passed is not a $T. This can happen '
'if the receiving variable is of the wrong type, or you passed a generic type and a type parameter');
final _TypeRegistration<T>? typeRegistration =
_currentScope.typeRegistrations[T] as _TypeRegistration<T>?;
_currentScope.typeRegistrations[T] as _TypeRegistration<T>?;

throwIf(
typeRegistration == null,
Expand Down
4 changes: 2 additions & 2 deletions test/async_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,8 @@ void main() {

expect(constructorCounter, 0);

final Iterable<TestBaseClass> instances = await getIt.getAllAsync<TestBaseClass>();
final Iterable<TestBaseClass> instances =
await getIt.getAllAsync<TestBaseClass>();

expect(instances.length, 2);
expect(instances.first is TestClass, true);
Expand All @@ -190,7 +191,6 @@ void main() {
getIt.allowRegisterMultipleImplementationsOfoneType = false;
});


test(
'signalReady will throw if any Singletons that has signalsReady==true '
'have not signaled completion', () async {
Expand Down

0 comments on commit 33ae250

Please sign in to comment.