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

Unified Diff: tracing/tracing/metrics/system_health/long_tasks_metric.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/metrics/system_health/long_tasks_metric.html
diff --git a/tracing/tracing/metrics/system_health/long_tasks_metric.html b/tracing/tracing/metrics/system_health/long_tasks_metric.html
index 9ae18c5cd13ec4dc6c7cffd21d6f9efe728deea7..e99565d709e0b0fccc29a56cc68beff44f5d432b 100644
--- a/tracing/tracing/metrics/system_health/long_tasks_metric.html
+++ b/tracing/tracing/metrics/system_health/long_tasks_metric.html
@@ -33,11 +33,11 @@ tr.exportTo('tr.metrics.sh', function() {
thread, opt_range, cb, opt_this) {
thread.sliceGroup.topLevelSlices.forEach(function(slice) {
if (opt_range &&
- !opt_range.intersectsExplicitRangeInclusive(slice.start, slice.end))
+ !opt_range.intersectsExplicitRangeInclusive(slice.start, slice.end)) {
return;
+ }
- if (slice.duration < LONG_TASK_MS)
- return;
+ if (slice.duration < LONG_TASK_MS) return;
cb.call(opt_this, slice);
});
@@ -57,8 +57,8 @@ tr.exportTo('tr.metrics.sh', function() {
if (modelHelper !== undefined) {
tr.b.dictionaryValues(modelHelper.rendererHelpers).forEach(
function(rendererHelper) {
- if (!rendererHelper.mainThread)
- return;
+ if (!rendererHelper.mainThread) return;
+
cb.call(opt_this, rendererHelper.mainThread);
});
}
« no previous file with comments | « tracing/tracing/metrics/system_health/loading_metric.html ('k') | tracing/tracing/metrics/system_health/memory_metric.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698