Skip to content

Commit 0592e03

Browse files
committed
Update PublishedObject.swift
1 parent e61bfde commit 0592e03

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

Sources/PublishedObject/PublishedObject.swift

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,8 @@ public struct PublishedObject<Value> {
6868
projected wrappedKeyPath: KeyPath<EnclosingSelf, Publisher>,
6969
storage storageKeyPath: ReferenceWritableKeyPath<EnclosingSelf, PublishedObject>
7070
) -> Publisher where EnclosingSelf.ObjectWillChangePublisher == ObservableObjectPublisher {
71-
get {
72-
observed[keyPath: storageKeyPath].setParent(observed)
73-
return observed[keyPath: storageKeyPath].projectedValue
74-
}
71+
observed[keyPath: storageKeyPath].setParent(observed)
72+
return observed[keyPath: storageKeyPath].projectedValue
7573
}
7674

7775
private let parent = Holder()

0 commit comments

Comments
 (0)