mirror of
https://github.com/pese-git/cherrypick.git
synced 2026-01-23 21:13:35 +00:00
refactored code and implemented unit tests
This commit is contained in:
@@ -27,9 +27,8 @@ class Scope {
|
||||
///
|
||||
/// return [Scope]
|
||||
Scope openSubScope(String name) {
|
||||
final subScope = Scope(this);
|
||||
if (!_scopeMap.containsKey(name)) {
|
||||
_scopeMap[name] = subScope;
|
||||
_scopeMap[name] = Scope(this);
|
||||
}
|
||||
return _scopeMap[name]!;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user