flatten

Flattens a Result<Result<T>> into a Result<T>