Skip to content

Commit 87d43cc

Browse files
committed
See if using name explicitly helps.
1 parent 17a68c9 commit 87d43cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/JSONAPI/Resource/Resource Object/ResourceObject+Replacing.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public extension JSONAPI.ResourceObject {
1515
/// - parameters:
1616
/// - replacement: A function that takes the existing `attributes` and returns the replacement.
1717
func replacingAttributes(_ replacement: (Description.Attributes) -> Description.Attributes) -> Self {
18-
return Self(id: id,
18+
return ResourceObject(id: id,
1919
attributes: replacement(attributes),
2020
relationships: relationships,
2121
meta: meta,

0 commit comments

Comments
 (0)