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

Unified Diff: lib/src/delegate/stream_sink.dart

Issue 1242943010: Don't use "=>" for void methods in delegates. (Closed) Base URL: git@github.com:dart-lang/async.git@master
Patch Set: Created 5 years, 5 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/delegate/sink.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/delegate/stream_sink.dart
diff --git a/lib/src/delegate/stream_sink.dart b/lib/src/delegate/stream_sink.dart
index 9742b4ce066a115b12badf2f873fc5bae9693884..b6ace650cb14c3d70a7ce711d8f1d890312c4d30 100644
--- a/lib/src/delegate/stream_sink.dart
+++ b/lib/src/delegate/stream_sink.dart
@@ -19,10 +19,13 @@ class DelegatingStreamSink<T> implements StreamSink<T> {
DelegatingStreamSink(StreamSink sink)
: _sink = sink;
- void add(T data) => _sink.add(data);
+ void add(T data) {
+ _sink.add(data);
+ }
- void addError(error, [StackTrace stackTrace]) =>
- _sink.addError(error, stackTrace);
+ void addError(error, [StackTrace stackTrace]) {
+ _sink.addError(error, stackTrace);
+ }
Future addStream(Stream<T> stream) => _sink.addStream(stream);
« no previous file with comments | « lib/src/delegate/sink.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698