| Index: utils/pub/git.dart
|
| diff --git a/utils/pub/git.dart b/utils/pub/git.dart
|
| index 53ecbe7826bde9f7d1c215d913ea514970c54bf2..8d996229779f6682e4ebe8c784317725ec8700c7 100644
|
| --- a/utils/pub/git.dart
|
| +++ b/utils/pub/git.dart
|
| @@ -13,7 +13,7 @@ import 'utils.dart';
|
| /// Tests whether or not the git command-line app is available for use.
|
| Future<bool> get isInstalled {
|
| if (_isGitInstalledCache != null) {
|
| - return new Future.immediate(_isGitInstalledCache);
|
| + return new Future.value(_isGitInstalledCache);
|
| }
|
|
|
| return _gitCommand.then((git) => git != null);
|
| @@ -44,7 +44,7 @@ String _gitCommandCache;
|
| /// found on the user's PATH.
|
| Future<String> get _gitCommand {
|
| if (_gitCommandCache != null) {
|
| - return new Future.immediate(_gitCommandCache);
|
| + return new Future.value(_gitCommandCache);
|
| }
|
|
|
| return _tryGitCommand("git").then((success) {
|
|
|