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

Unified Diff: tracing/tracing/ui/extras/about_tracing/profiling_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/about_tracing/profiling_view.html
diff --git a/tracing/tracing/ui/extras/about_tracing/profiling_view.html b/tracing/tracing/ui/extras/about_tracing/profiling_view.html
index 4b7711391ccd0972c15bc72747bc2ac3f62750fc..bda6b0f43e290ff2131ed13549a0d6ababfcd17f 100644
--- a/tracing/tracing/ui/extras/about_tracing/profiling_view.html
+++ b/tracing/tracing/ui/extras/about_tracing/profiling_view.html
@@ -153,8 +153,9 @@ tr.exportTo('tr.ui.e.about_tracing', function() {
},
beginRecording: function() {
- if (this.isRecording_)
+ if (this.isRecording_) {
throw new Error('Already recording');
+ }
this.isRecording_ = true;
var resultPromise = tr.ui.e.about_tracing.beginRecording(
this.tracingControllerClient_);
@@ -167,8 +168,9 @@ tr.exportTo('tr.ui.e.about_tracing', function() {
}.bind(this),
function(err) {
this.isRecording_ = false;
- if (err instanceof tr.ui.e.about_tracing.UserCancelledError)
+ if (err instanceof tr.ui.e.about_tracing.UserCancelledError) {
return;
+ }
tr.ui.b.Overlay.showError('Error while recording', err);
}.bind(this));
return resultPromise;
@@ -249,8 +251,9 @@ tr.exportTo('tr.ui.e.about_tracing', function() {
var custom = prompt('Filename? (' + fileExtension +
' appended) Or leave blank:');
- if (custom === null)
+ if (custom === null) {
return undefined;
+ }
var name;
if (custom) {
@@ -296,8 +299,7 @@ tr.exportTo('tr.ui.e.about_tracing', function() {
inputElement.addEventListener(
'change',
function(e) {
- if (changeFired)
- return;
+ if (changeFired) return;
changeFired = true;
var file = inputElement.files[0];
@@ -340,8 +342,7 @@ tr.exportTo('tr.ui.e.about_tracing', function() {
},
dropHandler_: function(e) {
- if (this.isAnyDialogUp_)
- return;
+ if (this.isAnyDialogUp_) return;
e.stopPropagation();
e.preventDefault();

Powered by Google App Engine
This is Rietveld 408576698