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

Unified Diff: tracing/tracing/ui/scripting_control.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
« no previous file with comments | « tracing/tracing/ui/find_controller_test.html ('k') | tracing/tracing/ui/side_panel/metrics_side_panel.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/ui/scripting_control.html
diff --git a/tracing/tracing/ui/scripting_control.html b/tracing/tracing/ui/scripting_control.html
index 3bb8f43c3c0a7e8ea885d62b036e2e0d9983b63a..832db4a49f3e84d6d2349c41c97b6aac1554d7ee 100644
--- a/tracing/tracing/ui/scripting_control.html
+++ b/tracing/tracing/ui/scripting_control.html
@@ -127,13 +127,13 @@ Polymer({
promptKeyDown: function(e) {
e.stopPropagation();
- if (!this._isEnterKey(e))
- return;
+ if (!this._isEnterKey(e)) return;
+
e.preventDefault();
var promptEl = this.$.prompt;
var command = promptEl.value;
- if (command.length === 0)
- return;
+ if (command.length === 0) return;
+
promptEl.value = '';
this.addLine_(String.fromCharCode(187) + ' ' + command);
@@ -158,8 +158,9 @@ Polymer({
addLine_: function(line) {
var historyEl = this.$.history;
- if (historyEl.innerText.length !== 0)
+ if (historyEl.innerText.length !== 0) {
historyEl.innerText += '\n';
+ }
historyEl.innerText += line;
},
« no previous file with comments | « tracing/tracing/ui/find_controller_test.html ('k') | tracing/tracing/ui/side_panel/metrics_side_panel.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698