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

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

Issue 124753002: Code cleanup (mostly io lib and some http lib). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Merge to head. Created 6 years, 11 months 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
Index: sdk/lib/io/directory_impl.dart
diff --git a/sdk/lib/io/directory_impl.dart b/sdk/lib/io/directory_impl.dart
index 9cbd1b9661d198a52976c78b435e1b8df6e60e04..73f7de8ebfc18be7cf97e5bf66513f83b5d03f71 100644
--- a/sdk/lib/io/directory_impl.dart
+++ b/sdk/lib/io/directory_impl.dart
@@ -7,7 +7,7 @@ part of dart.io;
class _Directory extends FileSystemEntity implements Directory {
final String path;
- _Directory(String this.path) {
+ _Directory(this.path) {
if (path is! String) {
throw new ArgumentError('${Error.safeToString(path)} '
'is not a String');
@@ -230,9 +230,8 @@ class _Directory extends FileSystemEntity implements Directory {
String toString() => "Directory: '$path'";
- bool _isErrorResponse(response) {
- return response is List && response[0] != _SUCCESS_RESPONSE;
- }
+ bool _isErrorResponse(response) =>
+ response is List && response[0] != _SUCCESS_RESPONSE;
_exceptionOrErrorFromResponse(response, String message) {
assert(_isErrorResponse(response));
@@ -272,9 +271,7 @@ class _AsyncDirectoryLister {
bool closed = false;
Completer closeCompleter = new Completer();
- _AsyncDirectoryLister(String this.path,
- bool this.recursive,
- bool this.followLinks) {
+ _AsyncDirectoryLister(this.path, this.recursive, this.followLinks) {
controller = new StreamController(onListen: onListen,
onResume: onResume,
onCancel: onCancel,
« no previous file with comments | « sdk/lib/io/directory.dart ('k') | sdk/lib/io/file.dart » ('j') | sdk/lib/io/http_date.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698