Skip to content

Commit f7db516

Browse files
author
Sergey Kononenko
committed
Fixed double optional value mapping
1 parent a16ffbd commit f7db516

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Operation-iOS/Classes/Operations/OperationCombiningService.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ extension OperationCombiningService {
131131

132132
let mappingOperation = ClosureOperation<T?> {
133133
let results = try loadingOperation.extractNoCancellableResultData()
134-
return results.first
134+
return results.first.flatMap { $0 }
135135
}
136136

137137
mappingOperation.addDependency(loadingOperation)

0 commit comments

Comments
 (0)