Showing
1 changed file
with
1 additions
and
2 deletions
| @@ -136,8 +136,7 @@ extension Inst on GetInterface { | @@ -136,8 +136,7 @@ extension Inst on GetInterface { | ||
| 136 | final info = GetInstance().getInstanceInfo<P>(tag: tag); | 136 | final info = GetInstance().getInstanceInfo<P>(tag: tag); |
| 137 | final permanent = (info.isPermanent ?? false); | 137 | final permanent = (info.isPermanent ?? false); |
| 138 | delete<P>(tag: tag, force: permanent); | 138 | delete<P>(tag: tag, force: permanent); |
| 139 | - // ignore: unnecessary_cast | ||
| 140 | - put(child as P, tag: tag, permanent: permanent); | 139 | + put(child, tag: tag, permanent: permanent); |
| 141 | } | 140 | } |
| 142 | 141 | ||
| 143 | /// Replaces a parent instance with a new Instance<P> lazily from the | 142 | /// Replaces a parent instance with a new Instance<P> lazily from the |
-
Please register or login to post a comment