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

Unified Diff: lib/src/response.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/request.dart ('k') | lib/src/shelf_unmodifiable_map.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/response.dart
diff --git a/lib/src/response.dart b/lib/src/response.dart
index f95fdb77ff6839ad43e825d9bb7188dc8c0bdc9a..029881305ae8f055908558087e87fb041eb5d791 100644
--- a/lib/src/response.dart
+++ b/lib/src/response.dart
@@ -276,8 +276,8 @@ Map<String, String> _adjustHeaders(
/// Adds a header with [name] and [value] to [headers], which may be null.
///
/// Returns a new map without modifying [headers].
-Map<String, String> _addHeader(Map<String, String> headers, String name,
- String value) {
+Map<String, String> _addHeader(
+ Map<String, String> headers, String name, String value) {
headers = headers == null ? {} : new Map.from(headers);
headers[name] = value;
return headers;
« no previous file with comments | « lib/src/request.dart ('k') | lib/src/shelf_unmodifiable_map.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698