Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1077)

Unified Diff: lib/src/result.dart

Issue 2707883002: Fix type warning in Result.release. (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « CHANGELOG.md ('k') | pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/result.dart
diff --git a/lib/src/result.dart b/lib/src/result.dart
index 51db558c3e4187bf3d83c9b515fa9934dc0cbcf6..7c45846e1c38fe5d7e2c4b08e6c67948117a1842 100644
--- a/lib/src/result.dart
+++ b/lib/src/result.dart
@@ -90,7 +90,7 @@ abstract class Result<T> {
/// If [future] completes with an error, the returned future completes with
/// the same error.
static Future<T> release<T>(Future<Result<T>> future) =>
- future.then<Future<T>>((result) => result.asFuture);
+ future.then<T>((result) => result.asFuture);
/// Capture the results of a stream into a stream of [Result] values.
///
« no previous file with comments | « CHANGELOG.md ('k') | pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698