Skip to content

Commit b8a2b3b

Browse files
committed
lint
1 parent 2069e08 commit b8a2b3b

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/js/histogram.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -112,12 +112,13 @@ class Bin {
112112
format(property) {
113113
switch(property) {
114114
case 'pdf':
115-
case 'cdf':
115+
case 'cdf': {
116116
let value = (Math.floor(this[property] * 10000) / 100).toFixed(2);
117117
if (value < 10) {
118118
value = '0' + value;
119119
}
120120
return value + '%';
121+
}
121122
case 'volume':
122123
return this[property].toLocaleString();
123124
default:
@@ -268,7 +269,7 @@ function drawHistogram(data, containerId, options) {
268269
callOnceWhenVisible(chart, () => {
269270
drawChart(series, containerId, options);
270271
})
271-
};
272+
}
272273

273274
function drawChart(series, containerId, options) {
274275
const chart = Highcharts.chart(containerId, {
@@ -328,7 +329,7 @@ function drawChart(series, containerId, options) {
328329
borderColor: 'rgba(247,247,247,0.85)',
329330
formatter: function() {
330331
const metric = new Metric(options, Math.round(this.points[0].x * 100) / 100);
331-
const tooltips = this.points.filter(p => !p.series.name.includes('CDF')).map((point, points) => {
332+
const tooltips = this.points.filter(p => !p.series.name.includes('CDF')).map((point) => {
332333
const cdf = this.points.find(p => p.series.name == `${point.series.name} CDF`);
333334
return `<td>
334335
<p style="text-transform: uppercase; font-size: 10px;">

src/js/report.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ class Report {
8585
}
8686

8787
bindPermalinkClick() {
88-
this.permalink.addEventListener('click', _ => {
88+
this.permalink.addEventListener('click', () => {
8989
this.permalink.select();
9090
});
9191
}

0 commit comments

Comments
 (0)