We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e61bfde commit 0592e03Copy full SHA for 0592e03
1 file changed
Sources/PublishedObject/PublishedObject.swift
@@ -68,10 +68,8 @@ public struct PublishedObject<Value> {
68
projected wrappedKeyPath: KeyPath<EnclosingSelf, Publisher>,
69
storage storageKeyPath: ReferenceWritableKeyPath<EnclosingSelf, PublishedObject>
70
) -> Publisher where EnclosingSelf.ObjectWillChangePublisher == ObservableObjectPublisher {
71
- get {
72
- observed[keyPath: storageKeyPath].setParent(observed)
73
- return observed[keyPath: storageKeyPath].projectedValue
74
- }
+ observed[keyPath: storageKeyPath].setParent(observed)
+ return observed[keyPath: storageKeyPath].projectedValue
75
}
76
77
private let parent = Holder()
0 commit comments