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

Unified Diff: runtime/observatory/lib/src/repositories/notification.dart

Issue 2345023003: Use dartfmt on Observatory code (Closed)
Patch Set: merge Created 4 years, 3 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
Index: runtime/observatory/lib/src/repositories/notification.dart
diff --git a/runtime/observatory/lib/src/repositories/notification.dart b/runtime/observatory/lib/src/repositories/notification.dart
index 80c25f2d990372c9b3058af1e34eae41b3458ba2..8d952d134d392aebfa516ea28ae8a50c7861d2c9 100644
--- a/runtime/observatory/lib/src/repositories/notification.dart
+++ b/runtime/observatory/lib/src/repositories/notification.dart
@@ -25,8 +25,7 @@ class NotificationRepository implements M.NotificationRepository {
Iterable<M.Notification> list() => _list;
void delete(M.Notification notification) {
- if (_list.remove(notification))
- _notify();
+ if (_list.remove(notification)) _notify();
}
void deleteAll() {
@@ -52,13 +51,13 @@ class NotificationRepository implements M.NotificationRepository {
if (isolate == null) {
deleteWhere((notification) {
return notification is M.EventNotification &&
- M.Event.isPauseEvent(notification.event);
+ M.Event.isPauseEvent(notification.event);
});
} else {
deleteWhere((notification) {
return notification is M.EventNotification &&
- M.Event.isPauseEvent(notification.event) &&
- notification.event.isolate == isolate;
+ M.Event.isPauseEvent(notification.event) &&
+ notification.event.isolate == isolate;
});
}
}
@@ -66,7 +65,7 @@ class NotificationRepository implements M.NotificationRepository {
void deleteDisconnectEvents() {
deleteWhere((notification) {
return notification is M.EventNotification &&
- notification.event is M.ConnectionClosedEvent;
+ notification.event is M.ConnectionClosedEvent;
});
}
}
« no previous file with comments | « runtime/observatory/lib/src/repositories/metric.dart ('k') | runtime/observatory/lib/src/repositories/object.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698