diff --git a/cherrypick/lib/src/scope.dart b/cherrypick/lib/src/scope.dart index bdcdc43..575f9e7 100644 --- a/cherrypick/lib/src/scope.dart +++ b/cherrypick/lib/src/scope.dart @@ -130,6 +130,6 @@ class Scope { } // 2 Поиск зависимостей в родительском скоупе - return _parentScope != null ? _parentScope!.tryResolve(named: named) : null; + return _parentScope?.tryResolve(named: named); } }