Merge pull request #328 from stencilproject/feature/fix-lazy

Fix `LazyValueWrapper`
This commit is contained in:
David Jennes
2022-07-31 22:58:06 +02:00
committed by GitHub
2 changed files with 3 additions and 7 deletions

View File

@@ -14,7 +14,9 @@ _None_
### Bug Fixes ### Bug Fixes
_None_ - Fix bug in `LazyValueWrapper`, causing it to never resolve.
[David Jennes](https://github.com/djbe)
[#328](https://github.com/stencilproject/Stencil/pull/328)
### Internal Changes ### Internal Changes

View File

@@ -61,9 +61,3 @@ extension LazyValueWrapper: Resolvable {
return try (value as? Resolvable)?.resolve(context) ?? value return try (value as? Resolvable)?.resolve(context) ?? value
} }
} }
extension LazyValueWrapper: Normalizable {
public func normalize() -> Any? {
(cachedValue as? Normalizable)?.normalize() ?? cachedValue
}
}