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