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

Unified Diff: tracing/tracing/extras/importer/linux_perf/sync_parser.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
Index: tracing/tracing/extras/importer/linux_perf/sync_parser.html
diff --git a/tracing/tracing/extras/importer/linux_perf/sync_parser.html b/tracing/tracing/extras/importer/linux_perf/sync_parser.html
index e7fd34a1a710e992e9d467c25c3073c74cedbd7b..d4715aef155cd78f3c29b89c15f0ee5a841eaf44 100644
--- a/tracing/tracing/extras/importer/linux_perf/sync_parser.html
+++ b/tracing/tracing/extras/importer/linux_perf/sync_parser.html
@@ -49,16 +49,14 @@ tr.exportTo('tr.e.importer.linux_perf', function() {
timelineEvent: function(eventName, cpuNumber, pid,
ts, eventBase) {
var event = syncTimelineRE.exec(eventBase.details);
- if (!event)
- return false;
+ if (!event) return false;
var thread = this.importer.getOrCreatePseudoThread(event[1]);
if (thread.lastActiveTs !== undefined) {
var duration = ts - thread.lastActiveTs;
var value = thread.lastActiveValue;
- if (value === undefined)
- value = ' ';
+ if (value === undefined) value = ' ';
var slice = new tr.model.ThreadSlice(
'', value,
ColorScheme.getColorIdForGeneralPurposeString(value),
@@ -74,8 +72,7 @@ tr.exportTo('tr.e.importer.linux_perf', function() {
syncWaitEvent: function(eventName, cpuNumber, pid, ts,
eventBase) {
var event = syncWaitRE.exec(eventBase.details);
- if (!event)
- return false;
+ if (!event) return false;
if (eventBase.tgid === undefined) {
return false;

Powered by Google App Engine
This is Rietveld 408576698