From 33ae25020c361d01f9d56a74bb34040d1331225e Mon Sep 17 00:00:00 2001 From: escamoteur Date: Mon, 15 Apr 2024 09:05:04 +0000 Subject: [PATCH] Update formatted files --- lib/get_it_impl.dart | 6 +++--- test/async_test.dart | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/get_it_impl.dart b/lib/get_it_impl.dart index 31c9ac5..e9c3b1b 100644 --- a/lib/get_it_impl.dart +++ b/lib/get_it_impl.dart @@ -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? typeRegistration = - _currentScope.typeRegistrations[T] as _TypeRegistration?; + _currentScope.typeRegistrations[T] as _TypeRegistration?; throwIf( typeRegistration == null, diff --git a/test/async_test.dart b/test/async_test.dart index 2d35d94..ad52855 100644 --- a/test/async_test.dart +++ b/test/async_test.dart @@ -179,7 +179,8 @@ void main() { expect(constructorCounter, 0); - final Iterable instances = await getIt.getAllAsync(); + final Iterable instances = + await getIt.getAllAsync(); expect(instances.length, 2); expect(instances.first is TestClass, true); @@ -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 {