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

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

Issue 2754013002: Format all dart: library files (Closed)
Patch Set: Format all dart: library files Created 3 years, 9 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
« no previous file with comments | « sdk/lib/io/bytes_builder.dart ('k') | sdk/lib/io/data_transformer.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/common.dart
diff --git a/sdk/lib/io/common.dart b/sdk/lib/io/common.dart
index 5ef4594af844d2e5b78e99f5c3ea0a062149c398..ae9cd1256f139c88f592b202cbf9e0cd9d253781 100644
--- a/sdk/lib/io/common.dart
+++ b/sdk/lib/io/common.dart
@@ -29,7 +29,7 @@ _exceptionFromResponse(response, String message, String path) {
return new ArgumentError("$message: $path");
case _OSERROR_RESPONSE:
var err = new OSError(response[_OSERROR_RESPONSE_MESSAGE],
- response[_OSERROR_RESPONSE_ERROR_CODE]);
+ response[_OSERROR_RESPONSE_ERROR_CODE]);
return new FileSystemException(message, path, err);
case _FILE_CLOSED_RESPONSE:
return new FileSystemException("File closed", path);
@@ -73,21 +73,17 @@ class OSError {
StringBuffer sb = new StringBuffer();
sb.write("OS Error");
if (!message.isEmpty) {
- sb..write(": ")
- ..write(message);
+ sb..write(": ")..write(message);
if (errorCode != noErrorCode) {
- sb..write(", errno = ")
- ..write(errorCode.toString());
+ sb..write(", errno = ")..write(errorCode.toString());
}
} else if (errorCode != noErrorCode) {
- sb..write(": errno = ")
- ..write(errorCode.toString());
+ sb..write(": errno = ")..write(errorCode.toString());
}
return sb.toString();
}
}
-
// Object for holding a buffer and an offset.
class _BufferAndStart {
List<int> buffer;
@@ -118,7 +114,6 @@ _BufferAndStart _ensureFastAndSerializableByteData(
return new _BufferAndStart(newBuffer, 0);
}
-
class _IOCrypto {
external static Uint8List getRandomBytes(int count);
}
« no previous file with comments | « sdk/lib/io/bytes_builder.dart ('k') | sdk/lib/io/data_transformer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698