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

Unified Diff: tracing/tracing/ui/extras/drive/comments_side_panel.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/drive/comments_side_panel.html
diff --git a/tracing/tracing/ui/extras/drive/comments_side_panel.html b/tracing/tracing/ui/extras/drive/comments_side_panel.html
index 4c72fa6dddfa15469a96317ee96a0132052dda7d..9987075de571c5c84d1bd99f13b55287b225ff9e 100644
--- a/tracing/tracing/ui/extras/drive/comments_side_panel.html
+++ b/tracing/tracing/ui/extras/drive/comments_side_panel.html
@@ -86,8 +86,7 @@ Polymer({
commentClick: function(event) {
var anchor = event.currentTarget.comment.anchor;
- if (!anchor)
- return;
+ if (!anchor) return;
var uiState =
JSON.parse(anchor).a[0][tr.ui.e.drive.constants.ANCHOR_NAME];
@@ -99,8 +98,9 @@ Polymer({
});
document.dispatchEvent(myEvent);
- if (this.annotationFromComment_)
+ if (this.annotationFromComment_) {
this.model.removeAnnotation(this.annotationFromComment_);
+ }
var loc = new tr.model.Location(uiState.location.xWorld,
uiState.location.yComponents);
@@ -139,8 +139,9 @@ Polymer({
},
get currentRangeOfInterest() {
- if (this.rangeOfInterest_.isEmpty)
+ if (this.rangeOfInterest_.isEmpty) {
return this.model_.bounds;
+ }
return this.rangeOfInterest_;
},
« no previous file with comments | « tracing/tracing/ui/extras/deep_reports/scalar_value.html ('k') | tracing/tracing/ui/extras/drive/index.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698