| Index: utils/pub/oauth2.dart
|
| diff --git a/utils/pub/oauth2.dart b/utils/pub/oauth2.dart
|
| index ced3ed4cd0f965f3cbafdc003f89ad8a9d1ef527..85bfed719328f178cef6ccd3d44aef196c43c0a2 100644
|
| --- a/utils/pub/oauth2.dart
|
| +++ b/utils/pub/oauth2.dart
|
| @@ -104,7 +104,7 @@ Future withClient(SystemCache cache, Future fn(Client client)) {
|
| /// Gets a new OAuth2 client. If saved credentials are available, those are
|
| /// used; otherwise, the user is prompted to authorize the pub client.
|
| Future<Client> _getClient(SystemCache cache) {
|
| - return defer(() {
|
| + return new Future.of(() {
|
| var credentials = _loadCredentials(cache);
|
| if (credentials == null) return _authorize();
|
|
|
|
|