mirror of
https://github.com/pese-git/cherrypick.git
synced 2026-01-26 22:59:58 +00:00
fixed cide analizer warnings
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
|
||||
import 'package:cherrypick/scope.dart';
|
||||
|
||||
Scope? _rootScope = null;
|
||||
Scope? _rootScope;
|
||||
|
||||
class CherryPick {
|
||||
/// RU: Метод открывает главный [Scope].
|
||||
@@ -21,9 +21,7 @@ class CherryPick {
|
||||
///
|
||||
/// return
|
||||
static Scope openRootScope() {
|
||||
if (_rootScope == null) {
|
||||
_rootScope = Scope(null);
|
||||
}
|
||||
_rootScope ??= Scope(null);
|
||||
return _rootScope!;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user