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

Unified Diff: tracing/tracing/ui/analysis/single_thread_time_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_thread_time_slice_sub_view.html
diff --git a/tracing/tracing/ui/analysis/single_thread_time_slice_sub_view.html b/tracing/tracing/ui/analysis/single_thread_time_slice_sub_view.html
index 8839a13504fea91da017d66529b3079368d89da6..9ff4bb8debf8cefec5554153e4d2a86e21f6027f 100644
--- a/tracing/tracing/ui/analysis/single_thread_time_slice_sub_view.html
+++ b/tracing/tracing/ui/analysis/single_thread_time_slice_sub_view.html
@@ -107,8 +107,9 @@ Polymer({
set selection(selection) {
var timeSlice = tr.b.getOnlyElement(selection);
- if (!(timeSlice instanceof tr.model.ThreadTimeSlice))
+ if (!(timeSlice instanceof tr.model.ThreadTimeSlice)) {
throw new Error('Only supports thread time slices');
+ }
this.currentSelection_ = selection;
@@ -149,11 +150,12 @@ Polymer({
if (cpuSliceThatTookCpu) {
var cpuLink = document.createElement('tr-ui-a-analysis-link');
cpuLink.selection = new tr.model.EventSet(cpuSliceThatTookCpu);
- if (cpuSliceThatTookCpu.thread)
+ if (cpuSliceThatTookCpu.thread) {
Polymer.dom(cpuLink).textContent =
cpuSliceThatTookCpu.thread.userFriendlyName;
- else
+ } else {
Polymer.dom(cpuLink).textContent = cpuSliceThatTookCpu.title;
+ }
Polymer.dom(runningInsteadEl).appendChild(cpuLink);
} else {
Polymer.dom(runningInsteadEl.parentElement).removeChild(

Powered by Google App Engine
This is Rietveld 408576698