Index: sdk/lib/io/directory_impl.dart |
diff --git a/sdk/lib/io/directory_impl.dart b/sdk/lib/io/directory_impl.dart |
index 6b6cc38272ff92b887407bc297321441e6f59f97..3aaf2194d51ee9a1cefb4b0204dfa2c0d19eb01b 100644 |
--- a/sdk/lib/io/directory_impl.dart |
+++ b/sdk/lib/io/directory_impl.dart |
@@ -64,14 +64,14 @@ class _Directory implements Directory { |
} else { |
future = future.then((index) { |
if (index != notFound) { |
- return new Future.immediate(index); |
+ return new Future.value(index); |
} |
return dirsToCreate[i].exists().then((e) => e ? i : notFound); |
}); |
} |
} |
if (future == null) { |
- return new Future.immediate(notFound); |
+ return new Future.value(notFound); |
} else { |
return future; |
} |
@@ -100,7 +100,7 @@ class _Directory implements Directory { |
} |
} |
if (future == null) { |
- return new Future.immediate(this); |
+ return new Future.value(this); |
} else { |
return future.then((_) => this); |
} |