Skip to content

Commit

Permalink
fixing confusing comment
Browse files Browse the repository at this point in the history
  • Loading branch information
escamoteur committed May 7, 2024
1 parent afa6dd3 commit 86203e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/get_it_impl.dart
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ class _ServiceFactory<T extends Object, P1, P2> {
if (instance is Disposable) {
return (instance! as Disposable).onDispose();
}
//if a LazySingletons was never accessed instance is null
if (instance != null) {
// this can happen with LazySingletons that were never be used
return disposeFunction?.call(instance!);
}
}
Expand Down

0 comments on commit 86203e7

Please sign in to comment.