Skip to content

Commit

Permalink
Squashed 'apollo-ios-codegen/' changes from 22952afb..cba4dd7d
Browse files Browse the repository at this point in the history
cba4dd7d fix: Removes local cache mutation type condition setter (#485)

git-subtree-dir: apollo-ios-codegen
git-subtree-split: cba4dd7d00604092950a9e340ef318e74287ce03
  • Loading branch information
gh-action-runner authored and gh-action-runner committed Sep 18, 2024
1 parent b32121a commit 95e65c8
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions Sources/ApolloCodegenLib/Templates/SelectionSetTemplate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -478,16 +478,7 @@ struct SelectionSetTemplate {

let typeName = inlineFragment.renderedTypeName
return """
\(renderAccessControl())var \(typeName.firstLowercased): \(typeName)? {\
\(if: isMutable,
"""
get { _asInlineFragment() }
set { if let newData = newValue?.__data._data { __data._data = newData }}
}
""",
else: " _asInlineFragment() }"
)
\(renderAccessControl())var \(typeName.firstLowercased): \(typeName)? { _asInlineFragment() }
"""
}

Expand Down

0 comments on commit 95e65c8

Please sign in to comment.