Skip to content

Commit

Permalink
Fix type warning in Result.release.
Browse files Browse the repository at this point in the history
R=floitsch@google.com

Review-Url: https://codereview.chromium.org//2707883002 .
  • Loading branch information
lrhn committed Feb 20, 2017
1 parent 4c8f9fb commit 26d52aa
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,7 @@
## 1.13.2

* Fix a type-warning.

## 1.13.1

* Use `FutureOr` for various APIs that had previously used `dynamic`.
Expand Down
2 changes: 1 addition & 1 deletion lib/src/result.dart
Expand Up @@ -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.
///
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
@@ -1,5 +1,5 @@
name: async
version: 1.13.1
version: 1.13.2
author: Dart Team <misc@dartlang.org>
description: Utility functions and classes related to the 'dart:async' library.
homepage: https://www.github.com/dart-lang/async
Expand Down

0 comments on commit 26d52aa

Please sign in to comment.