diff --git a/lib/get_it_impl.dart b/lib/get_it_impl.dart index 3e497d2..02a3d92 100644 --- a/lib/get_it_impl.dart +++ b/lib/get_it_impl.dart @@ -371,7 +371,7 @@ class _GetItImplementation implements GetIt { assert( instanceFactory != null, // ignore: missing_whitespace_between_adjacent_strings - 'Object/factory with ${instanceName != null ? 'with name $instanceName and ' : ' '}' + 'Object/factory with ${instanceName != null ? 'with name $instanceName and ' : ''}' 'type ${T.toString()} is not registered inside GetIt. ' '\n(Did you accidentally do GetIt sl=GetIt.instance(); instead of GetIt sl=GetIt.instance;' '\nDid you forget to register it?)', @@ -806,7 +806,7 @@ class _GetItImplementation implements GetIt { !allowReassignment, ArgumentError( // ignore: missing_whitespace_between_adjacent_strings - 'Object/factory with ${instanceName != null ? 'with name $instanceName and ' : ' '}' + 'Object/factory with ${instanceName != null ? 'with name $instanceName and ' : ''}' 'type ${T.toString()} is already registered inside GetIt. ', ), );