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

Unified Diff: samples-dev/swarm/Decoder.dart

Issue 2828603002: Format samples and samples-dev directories. (Closed)
Patch Set: Created 3 years, 8 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 | « samples-dev/swarm/DataSource.dart ('k') | samples-dev/swarm/HelpDialog.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples-dev/swarm/Decoder.dart
diff --git a/samples-dev/swarm/Decoder.dart b/samples-dev/swarm/Decoder.dart
index 39b74376a7ab79704ac6d06941198027f448e991..034b3312600e554cf33863f143e5410cba9262c4 100644
--- a/samples-dev/swarm/Decoder.dart
+++ b/samples-dev/swarm/Decoder.dart
@@ -19,7 +19,7 @@ class Decoder {
// For more info, see appengine/encoder.py.
int readInt() {
var r = 0;
- for (var i=0; ; i++) {
+ for (var i = 0;; i++) {
var v = data.codeUnitAt(index++);
r |= (v & 0x3F) << (6 * i);
if ((v & 0x40) == 0) break;
@@ -29,15 +29,14 @@ class Decoder {
bool readBool() {
final ch = data[index++];
- assert (ch == 'T' || ch == 'F');
+ assert(ch == 'T' || ch == 'F');
return ch == 'T';
}
String readString() {
int len = readInt();
- String s = data.substring(index, index+len);
+ String s = data.substring(index, index + len);
index += len;
return s;
}
}
-
« no previous file with comments | « samples-dev/swarm/DataSource.dart ('k') | samples-dev/swarm/HelpDialog.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698