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

Unified Diff: sdk/lib/vmservice/asset.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/typed_data/typed_data.dart ('k') | sdk/lib/vmservice/client.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/vmservice/asset.dart
diff --git a/sdk/lib/vmservice/asset.dart b/sdk/lib/vmservice/asset.dart
index db0d97869b7fc59f73ad56dc7aac7ca884f2b2a4..708c169849842aaa0cd711d4190f59c188150bd9 100644
--- a/sdk/lib/vmservice/asset.dart
+++ b/sdk/lib/vmservice/asset.dart
@@ -12,7 +12,7 @@ class Asset {
String get mimeType {
var extensionStart = name.lastIndexOf('.');
- var extension = name.substring(extensionStart+1);
+ var extension = name.substring(extensionStart + 1);
switch (extension) {
case 'html':
return 'text/html; charset=UTF-8';
@@ -101,8 +101,8 @@ class _ByteStream {
}
class _TarArchive {
- static const List<int> tarMagic = const [ 0x75, 0x73, 0x74, 0x61, 0x72, 0 ];
- static const List<int> tarVersion = const [ 0x30, 0x30 ];
+ static const List<int> tarMagic = const [0x75, 0x73, 0x74, 0x61, 0x72, 0];
+ static const List<int> tarVersion = const [0x30, 0x30];
static const int tarHeaderSize = 512;
static const int tarHeaderFilenameSize = 100;
static const int tarHeaderFilenameOffset = 0;
@@ -152,9 +152,7 @@ class _TarArchive {
static int _readSize(_ByteStream bs) {
String octalSize = _readCString(bs, tarHeaderSizeSize);
- return int.parse(octalSize,
- radix: 8,
- onError: (_) => 0);
+ return int.parse(octalSize, radix: 8, onError: (_) => 0);
}
static int _readType(_ByteStream bs) {
@@ -175,8 +173,7 @@ class _TarArchive {
final _ByteStream _bs;
- _TarArchive(Uint8List bytes)
- : _bs = new _ByteStream(bytes);
+ _TarArchive(Uint8List bytes) : _bs = new _ByteStream(bytes);
bool hasNext() {
return !_endOfArchive(_bs);
« no previous file with comments | « sdk/lib/typed_data/typed_data.dart ('k') | sdk/lib/vmservice/client.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698