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

Unified Diff: tracing/tracing/ui/extras/chrome/cc/picture_ops_list_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/extras/chrome/cc/picture_ops_list_view.html
diff --git a/tracing/tracing/ui/extras/chrome/cc/picture_ops_list_view.html b/tracing/tracing/ui/extras/chrome/cc/picture_ops_list_view.html
index d7cb178ee3ae3b0ddfac1b2bbcbd390d2680824b..6e3d67283c2bb691a7e5191c2cdf83f13b7051ed 100644
--- a/tracing/tracing/ui/extras/chrome/cc/picture_ops_list_view.html
+++ b/tracing/tracing/ui/extras/chrome/cc/picture_ops_list_view.html
@@ -60,12 +60,10 @@ tr.exportTo('tr.ui.e.chrome.cc', function() {
updateContents_: function() {
this.opsList_.clear();
- if (!this.picture_)
- return;
+ if (!this.picture_) return;
var ops = this.picture_.getOps();
- if (!ops)
- return;
+ if (!ops) return;
ops = this.picture_.tagOpsWithTimings(ops);
@@ -204,18 +202,19 @@ tr.exportTo('tr.ui.e.chrome.cc', function() {
elementInfo = {};
annotationGroup.forEach(function(annotation) {
annotation.info.forEach(function(info) {
- if (info.includes(ANNOTATION_TAG))
+ if (info.includes(ANNOTATION_TAG)) {
elementInfo.tag = info.substring(
info.indexOf(ANNOTATION_TAG) +
ANNOTATION_TAG.length).toLowerCase();
- else if (info.includes(ANNOTATION_ID))
+ } else if (info.includes(ANNOTATION_ID)) {
elementInfo.id = info.substring(
info.indexOf(ANNOTATION_ID) +
ANNOTATION_ID.length);
- else if (info.includes(ANNOTATION_CLASS))
+ } else if (info.includes(ANNOTATION_CLASS)) {
elementInfo.class = info.substring(
info.indexOf(ANNOTATION_CLASS) +
ANNOTATION_CLASS.length);
+ }
annotations.push(info);
});

Powered by Google App Engine
This is Rietveld 408576698