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

Unified Diff: tracing/tracing/importer/find_startup_expectations.html

Issue 2776653002: [ESLint] Fix violations when enabling curly rule in eslint. (Closed)
Patch Set: rebase Created 3 years, 9 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 | « tracing/tracing/importer/find_load_expectations.html ('k') | tracing/tracing/importer/import.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/importer/find_startup_expectations.html
diff --git a/tracing/tracing/importer/find_startup_expectations.html b/tracing/tracing/importer/find_startup_expectations.html
index 47edef0cfe908151e71e022a43697f0ff7b896b6..cfb7c1e43fbdbe36e42e1fd825d4e38abc98f714 100644
--- a/tracing/tracing/importer/find_startup_expectations.html
+++ b/tracing/tracing/importer/find_startup_expectations.html
@@ -36,8 +36,9 @@ tr.exportTo('tr.importer', function() {
events.forEach(function(event) {
var sliceGroup = event.parentContainer.sliceGroup;
var slice = sliceGroup && sliceGroup.findFirstSlice();
- if (slice)
+ if (slice) {
deduper.push(slice);
+ }
});
return deduper.toArray();
}
@@ -52,21 +53,19 @@ tr.exportTo('tr.importer', function() {
openingEvents.forEach(function(openingEvent) {
closingEvents.forEach(function(closingEvent) {
// Ignore opening event that already have a closing event.
- if (openingEvent.closingEvent)
- return;
+ if (openingEvent.closingEvent) return;
// Ignore closing events that already belong to an opening event.
- if (closingEvent.openingEvent)
- return;
+ if (closingEvent.openingEvent) return;
// Ignore closing events before |openingEvent|.
- if (closingEvent.start <= openingEvent.start)
- return;
+ if (closingEvent.start <= openingEvent.start) return;
// Ignore events from different threads.
if (openingEvent.parentContainer.parent.pid !==
- closingEvent.parentContainer.parent.pid)
+ closingEvent.parentContainer.parent.pid) {
return;
+ }
// This is the first closing event for this opening event, record it.
openingEvent.closingEvent = closingEvent;
« no previous file with comments | « tracing/tracing/importer/find_load_expectations.html ('k') | tracing/tracing/importer/import.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698