| Index: sdk/lib/io/link.dart
|
| diff --git a/sdk/lib/io/link.dart b/sdk/lib/io/link.dart
|
| index 347ae1f5147ba5a0ce02822200b6b405db11e2ab..d36d7796424212cbd1d37deba4c28784eeeda3da 100644
|
| --- a/sdk/lib/io/link.dart
|
| +++ b/sdk/lib/io/link.dart
|
| @@ -130,7 +130,7 @@ class _Link extends FileSystemEntity implements Link {
|
|
|
| Future<bool> exists() {
|
| // TODO(whesse): Replace with asynchronous version.
|
| - return new Future.immediate(existsSync());
|
| + return new Future.value(existsSync());
|
| }
|
|
|
| bool existsSync() => FileSystemEntity.isLinkSync(path);
|
| @@ -205,7 +205,7 @@ class _Link extends FileSystemEntity implements Link {
|
|
|
| Future<String> target() {
|
| // TODO(whesse): Replace with asynchronous version.
|
| - return new Future.of(targetSync);
|
| + return new Future.sync(targetSync);
|
| }
|
|
|
| String targetSync() {
|
|
|