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

Unified Diff: lib/src/middleware.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/message.dart ('k') | lib/src/request.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/middleware.dart
diff --git a/lib/src/middleware.dart b/lib/src/middleware.dart
index b81b70d7ed85e384723920702690573dc66e0281..dcd984ba5b80ca76f83c2a3d6c48961b71fa409e 100644
--- a/lib/src/middleware.dart
+++ b/lib/src/middleware.dart
@@ -67,8 +67,8 @@ Middleware createMiddleware({requestHandler(Request request),
return syncFuture(() => requestHandler(request)).then((response) {
if (response != null) return response;
- return syncFuture(() => innerHandler(request))
- .then((response) => responseHandler(response), onError: onError);
+ return syncFuture(() => innerHandler(request)).then(
+ (response) => responseHandler(response), onError: onError);
});
};
};
« no previous file with comments | « lib/src/message.dart ('k') | lib/src/request.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698