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

Unified Diff: tracing/tracing/ui/analysis/single_async_slice_sub_view.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/ui/analysis/single_async_slice_sub_view.html
diff --git a/tracing/tracing/ui/analysis/single_async_slice_sub_view.html b/tracing/tracing/ui/analysis/single_async_slice_sub_view.html
index b2238040827d101d88ace9c706fad82318096483..b3e1ba49802378a508b801543c6f408cae3e98a4 100644
--- a/tracing/tracing/ui/analysis/single_async_slice_sub_view.html
+++ b/tracing/tracing/ui/analysis/single_async_slice_sub_view.html
@@ -40,8 +40,9 @@ Polymer({
},
set selection(selection) {
- if (selection.length !== 1)
+ if (selection.length !== 1) {
throw new Error('Only supports single slices');
+ }
this.$.content.setSelectionWithoutErrorChecks(selection);
this.$.relatedEvents.setRelatedEvents(selection);
if (this.$.relatedEvents.hasRelatedEvents()) {
@@ -64,8 +65,7 @@ Polymer({
},
get relatedEventsToHighlight() {
- if (!this.currentSelection_)
- return undefined;
+ if (!this.currentSelection_) return undefined;
return tr.b.getOnlyElement(this.currentSelection_).associatedEvents;
}
});
« no previous file with comments | « tracing/tracing/ui/analysis/selection_summary_table.html ('k') | tracing/tracing/ui/analysis/single_cpu_slice_sub_view.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698