Index: sdk/lib/io/link.dart |
diff --git a/sdk/lib/io/link.dart b/sdk/lib/io/link.dart |
index 7f07234ab54dc3f343009605ddbc721bc8de56f9..0ffcf0e3dc98e5d88bf7665a085af4e61b06a87d 100644 |
--- a/sdk/lib/io/link.dart |
+++ b/sdk/lib/io/link.dart |
@@ -166,8 +166,9 @@ class _Link extends FileSystemEntity implements Link { |
if (Platform.operatingSystem == 'windows') { |
target = _makeWindowsLinkTarget(target); |
} |
- return (recursive ? parent.create(recursive: true) |
- : new Future.value(null)) |
+ var result = recursive ? parent.create(recursive: true) |
+ : new Future.value(null); |
+ return result |
.then((_) => _IOService.dispatch(_FILE_CREATE_LINK, [path, target])) |
.then((response) { |
if (_isErrorResponse(response)) { |