Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/get_it_impl.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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?)',
Expand Down Expand Up @@ -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. ',
),
);
Expand Down