Skip to content

Commit 293dd3b

Browse files
committed
Remove unused default parameter while setting value in resultMap
Co-authored-by: TizianoCoroneo <tizianocoroneo@me.com>
1 parent e1198dd commit 293dd3b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Sources/ApolloSQLite/SQLiteNormalizedCache.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ extension SQLiteNormalizedCache: NormalizedCache {
141141
do {
142142
let records = try self.selectRecords(forKeys: keys)
143143
let recordsIndexMap = records.indices.reversed().reduce(into: [:]) { resultMap, index in
144-
resultMap[records[index].key, default: index] = index
144+
resultMap[records[index].key] = index
145145
}
146146

147147
let recordsOrNil: [Record?] = keys.map { key in

0 commit comments

Comments
 (0)