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

Unified Diff: lib/src/delegate/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/event_sink.dart ('k') | lib/src/delegate/stream_sink.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/delegate/sink.dart
diff --git a/lib/src/delegate/sink.dart b/lib/src/delegate/sink.dart
index 5cf4f563adf0956274f4ba7024d763a80431e02b..bb50da33972521ff47578bf255566f0262c683ee 100644
--- a/lib/src/delegate/sink.dart
+++ b/lib/src/delegate/sink.dart
@@ -15,7 +15,11 @@ class DelegatingSink<T> implements Sink<T> {
DelegatingSink(Sink sink)
: _sink = sink;
- void add(T data) => _sink.add(data);
+ void add(T data) {
+ _sink.add(data);
+ }
- void close() => _sink.close();
+ void close() {
+ _sink.close();
+ }
}
« no previous file with comments | « lib/src/delegate/event_sink.dart ('k') | lib/src/delegate/stream_sink.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698