From 95e65c8b5809d35a151424d8206ce93d246b18f1 Mon Sep 17 00:00:00 2001 From: gh-action-runner Date: Wed, 18 Sep 2024 17:30:07 +0000 Subject: [PATCH] Squashed 'apollo-ios-codegen/' changes from 22952afb..cba4dd7d cba4dd7d fix: Removes local cache mutation type condition setter (apollographql/apollo-ios-dev#485) git-subtree-dir: apollo-ios-codegen git-subtree-split: cba4dd7d00604092950a9e340ef318e74287ce03 --- .../Templates/SelectionSetTemplate.swift | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/Sources/ApolloCodegenLib/Templates/SelectionSetTemplate.swift b/Sources/ApolloCodegenLib/Templates/SelectionSetTemplate.swift index fd91d5104..aed458cb4 100644 --- a/Sources/ApolloCodegenLib/Templates/SelectionSetTemplate.swift +++ b/Sources/ApolloCodegenLib/Templates/SelectionSetTemplate.swift @@ -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() } """ }