Skip to content

Commit 1f0d577

Browse files
committed
Optimize WeakAttribute.changedValue
1 parent 80d85eb commit 1f0d577

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/OpenAttributeGraph/Attribute/Weak/WeakAttribute.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public struct WeakAttribute<Value> {
8080

8181
public var value: Value? { wrappedValue }
8282

83-
public func changedValue(options: OAGValueOptions) -> (value: Value, changed: Bool)? {
83+
public func changedValue(options: OAGValueOptions = []) -> (value: Value, changed: Bool)? {
8484
let value = OAGGraphGetWeakValue(base, options: options, type: Value.self)
8585
guard let ptr = value.value else {
8686
return nil

0 commit comments

Comments
 (0)