Index: tools/release/version.dart |
diff --git a/tools/release/version.dart b/tools/release/version.dart |
index 74e1e66363d0dde9d2c933a661e1926ce3ab97be..99b44bd87525fe6163a93b4a929c7ecea0bdc3a2 100644 |
--- a/tools/release/version.dart |
+++ b/tools/release/version.dart |
@@ -149,7 +149,7 @@ class Version { |
Future<int> getRevision() { |
if (repositoryType == RepositoryType.UNKNOWN) { |
- return new Future.immediate(0); |
+ return new Future.value(0); |
} |
var isSvn = repositoryType == RepositoryType.SVN; |
var command = isSvn ? "svn" : "git"; |