Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(434)

Unified Diff: sdk/lib/io/link.dart

Issue 52263003: Implement least upper bound. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments. Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sdk/lib/io/http_impl.dart ('k') | tests/compiler/dart2js/least_upper_bound_language_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)) {
« no previous file with comments | « sdk/lib/io/http_impl.dart ('k') | tests/compiler/dart2js/least_upper_bound_language_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698