Merge pull request #328 from stencilproject/feature/fix-lazy
Fix `LazyValueWrapper`
This commit is contained in:
@@ -14,7 +14,9 @@ _None_
|
||||
|
||||
### 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
|
||||
|
||||
|
||||
@@ -61,9 +61,3 @@ extension LazyValueWrapper: Resolvable {
|
||||
return try (value as? Resolvable)?.resolve(context) ?? value
|
||||
}
|
||||
}
|
||||
|
||||
extension LazyValueWrapper: Normalizable {
|
||||
public func normalize() -> Any? {
|
||||
(cachedValue as? Normalizable)?.normalize() ?? cachedValue
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user