Chromium Code Reviews| 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) => |
|
Lasse Reichstein Nielsen
2014/01/06 09:29:30
Style guide isn't prescriptive about this - there
|
| + 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, |