Showing
1 changed file
with
3 additions
and
1 deletions
| @@ -165,7 +165,9 @@ class GetInstance { | @@ -165,7 +165,9 @@ class GetInstance { | ||
| 165 | _InstanceBuilderFactory<S>? dep; | 165 | _InstanceBuilderFactory<S>? dep; |
| 166 | if (_singl.containsKey(key)) { | 166 | if (_singl.containsKey(key)) { |
| 167 | final _dep = _singl[key]; | 167 | final _dep = _singl[key]; |
| 168 | - if (_dep != null && _dep.isDirty) { | 168 | + if (_dep == null || !_dep.isDirty) { |
| 169 | + return; | ||
| 170 | + } else { | ||
| 169 | dep = _dep as _InstanceBuilderFactory<S>; | 171 | dep = _dep as _InstanceBuilderFactory<S>; |
| 170 | } | 172 | } |
| 171 | } | 173 | } |
-
Please register or login to post a comment