Skip to content

Commit

Permalink
Merge pull request #328 from stencilproject/feature/fix-lazy
Browse files Browse the repository at this point in the history
Fix `LazyValueWrapper`
  • Loading branch information
djbe authored Jul 31, 2022
2 parents 9444ee5 + 59b0c17 commit a3df900
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 0 additions & 6 deletions Sources/Stencil/LazyValueWrapper.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

0 comments on commit a3df900

Please sign in to comment.