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

Unified Diff: dashboard/dashboard/elements/chart-container.html

Issue 2432993005: Turn on eslint rule one-var and fix existing errors. (Closed)
Patch Set: Created 4 years, 2 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 | « dashboard/dashboard/elements/alerts-table.html ('k') | tracing/tracing/base/color.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dashboard/dashboard/elements/chart-container.html
diff --git a/dashboard/dashboard/elements/chart-container.html b/dashboard/dashboard/elements/chart-container.html
index c2b6371d18e9b527e4b338f97d01c5f34099aabc..3a1e4c30efb6f0558dfc614d4c6eb8b84859b2b6 100644
--- a/dashboard/dashboard/elements/chart-container.html
+++ b/dashboard/dashboard/elements/chart-container.html
@@ -1336,7 +1336,8 @@ triaging functionality in the chart.
*/
addAxisMargin: function(axis) {
var margin = 0.2; // Flot's default for autoscaleMargin.
- var min = axis.min, max = axis.max;
+ var min = axis.min;
+ var max = axis.max;
var delta = max - min;
if (delta == 0.0) {
min -= axis.min == 0 ? 1 : margin;
@@ -1746,7 +1747,8 @@ triaging functionality in the chart.
// Flot sends a spurious click event at the end of the selection.
return;
}
- var min = Math.min(from, to), max = Math.max(from, to);
+ var min = Math.min(from, to);
+ var max = Math.max(from, to);
if (pos.y > min && pos.y < max) {
this.chartOptions.yaxis.min = min;
this.chartOptions.yaxis.max = max;
@@ -1831,7 +1833,8 @@ triaging functionality in the chart.
// The alerts and triaged lists are attributes of chart-tooltip
// which are used for showing information about anomalies. The alerts
// list is also used for showing the triage dialog.
- var alerts = null, triaged = null;
+ var alerts = null;
+ var triaged = null;
if (anomalyInfo.bug_id) {
triaged = [anomalyInfo];
} else {
« no previous file with comments | « dashboard/dashboard/elements/alerts-table.html ('k') | tracing/tracing/base/color.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698