Skip to content
This repository has been archived by the owner on Jul 3, 2022. It is now read-only.

Commit

Permalink
Merge pull request #184 from danj-stripe/patch-1
Browse files Browse the repository at this point in the history
Explicit Void return type on `analysis(ifSuccess:` block
  • Loading branch information
Thomvis authored Mar 21, 2018
2 parents 8659746 + ae62663 commit 3713f11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/BrightFutures/Result+BrightFutures.swift
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ extension ResultProtocol where Value: AsyncType, Value.Value: ResultProtocol, Er
/// with the error from the outer result otherwise
public func flatten() -> Future<Value.Value.Value, Value.Value.Error> {
return Future { complete in
analysis(ifSuccess: { innerFuture in
analysis(ifSuccess: { innerFuture -> () in
innerFuture.onComplete(ImmediateExecutionContext) { res in
complete(res.analysis(ifSuccess: {
return Result(value: $0)
Expand Down

0 comments on commit 3713f11

Please sign in to comment.