Skip to content

Commit

Permalink
Fix build warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
calvincestari committed Feb 14, 2024
1 parent 98e61d1 commit 3e2dde9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apollo-ios/Sources/Apollo/GraphQLResult.swift
Original file line number Diff line number Diff line change
Expand Up @@ -48,21 +48,21 @@ public struct GraphQLResult<Data: RootSelectionSet> {
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
Expand Down

0 comments on commit 3e2dde9

Please sign in to comment.