fixed cide analizer warnings

This commit is contained in:
Sergey Penkovsky
2021-04-29 10:02:32 +03:00
parent 5ea3744961
commit 0e37d7f222
9 changed files with 95 additions and 97 deletions

View File

@@ -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!;
}