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

Unified Diff: lib/src/message.dart

Issue 837193005: pkg/shelf: formatted code (Closed) Base URL: https://github.com/dart-lang/shelf.git@master
Patch Set: nits Created 5 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
« no previous file with comments | « lib/src/hijack_exception.dart ('k') | lib/src/middleware.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/message.dart
diff --git a/lib/src/message.dart b/lib/src/message.dart
index 514eb48569859522842892ea026fe983dcd0ca49..ba5c5fa5441d22853f3a21ffc03a616141d81fba 100644
--- a/lib/src/message.dart
+++ b/lib/src/message.dart
@@ -46,10 +46,10 @@ abstract class Message {
/// Creates a new [Message].
///
/// If [headers] is `null`, it is treated as empty.
- Message(this._body, {Map<String, String> headers,
- Map<String, Object> context})
+ Message(this._body,
+ {Map<String, String> headers, Map<String, Object> context})
: this.headers = new ShelfUnmodifiableMap<String>(headers,
- ignoreKeyCase: true),
+ ignoreKeyCase: true),
this.context = new ShelfUnmodifiableMap<Object>(context,
ignoreKeyCase: false);
@@ -107,7 +107,7 @@ abstract class Message {
Stream<List<int>> read() {
if (_bodyWasRead) {
throw new StateError("The 'read' method can only be called once on a "
- "shelf.Request/shelf.Response object.");
+ "shelf.Request/shelf.Response object.");
}
_bodyWasRead = true;
return _body;
« no previous file with comments | « lib/src/hijack_exception.dart ('k') | lib/src/middleware.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698