From 3e2dde9db57c57e3edfb57d776541b44dbbfef0d Mon Sep 17 00:00:00 2001 From: Calvin Cestari Date: Tue, 13 Feb 2024 17:37:40 -0800 Subject: [PATCH] Fix build warnings --- apollo-ios/Sources/Apollo/GraphQLResult.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apollo-ios/Sources/Apollo/GraphQLResult.swift b/apollo-ios/Sources/Apollo/GraphQLResult.swift index e940fdc65..2dc48c1fc 100644 --- a/apollo-ios/Sources/Apollo/GraphQLResult.swift +++ b/apollo-ios/Sources/Apollo/GraphQLResult.swift @@ -48,21 +48,21 @@ public struct GraphQLResult { mergedData = Data(_dataDict: mergedDataDict) } - var mergedErrors = try merge( + let mergedErrors = try merge( incrementalResult.errors, into: self.errors ) { currentErrors, incrementalErrors in currentErrors + incrementalErrors } - var mergedExtensions = try merge( + let mergedExtensions = try merge( incrementalResult.extensions, into: self.extensions ) { currentExtensions, incrementalExtensions in currentExtensions.merging(incrementalExtensions) { _, new in new } } - var mergedDependentKeys = try merge( + let mergedDependentKeys = try merge( incrementalResult.dependentKeys, into: self.dependentKeys ) { currentDependentKeys, incrementalDependentKeys in