Fix linter warnings for unused destructured variables
This commit is contained in:
parent
9d6a49255f
commit
d02c37d2dc
@ -380,8 +380,7 @@ class UptimeCalculator {
|
||||
dailyStatBean.numeric_max = dailyData.maxNumeric;
|
||||
{
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
const { up, down, avgPing, minPing, maxPing, avgNumeric, minNumeric, maxNumeric, timestamp, ...extras } =
|
||||
dailyData;
|
||||
const { up: _up, down: _down, avgPing: _avgPing, minPing: _minPing, maxPing: _maxPing, avgNumeric: _avgNumeric, minNumeric: _minNumeric, maxNumeric: _maxNumeric, timestamp: _timestamp, ...extras } = dailyData;
|
||||
if (Object.keys(extras).length > 0) {
|
||||
dailyStatBean.extras = JSON.stringify(extras);
|
||||
}
|
||||
@ -404,18 +403,7 @@ class UptimeCalculator {
|
||||
hourlyStatBean.numeric_max = hourlyData.maxNumeric;
|
||||
{
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
const {
|
||||
up,
|
||||
down,
|
||||
avgPing,
|
||||
minPing,
|
||||
maxPing,
|
||||
avgNumeric,
|
||||
minNumeric,
|
||||
maxNumeric,
|
||||
timestamp,
|
||||
...extras
|
||||
} = hourlyData;
|
||||
const { up: _up, down: _down, avgPing: _avgPing, minPing: _minPing, maxPing: _maxPing, avgNumeric: _avgNumeric, minNumeric: _minNumeric, maxNumeric: _maxNumeric, timestamp: _timestamp, ...extras } = hourlyData;
|
||||
if (Object.keys(extras).length > 0) {
|
||||
hourlyStatBean.extras = JSON.stringify(extras);
|
||||
}
|
||||
@ -437,18 +425,7 @@ class UptimeCalculator {
|
||||
minutelyStatBean.numeric_max = minutelyData.maxNumeric;
|
||||
{
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
const {
|
||||
up,
|
||||
down,
|
||||
avgPing,
|
||||
minPing,
|
||||
maxPing,
|
||||
avgNumeric,
|
||||
minNumeric,
|
||||
maxNumeric,
|
||||
timestamp,
|
||||
...extras
|
||||
} = minutelyData;
|
||||
const { up: _up, down: _down, avgPing: _avgPing, minPing: _minPing, maxPing: _maxPing, avgNumeric: _avgNumeric, minNumeric: _minNumeric, maxNumeric: _maxNumeric, timestamp: _timestamp, ...extras } = minutelyData;
|
||||
if (Object.keys(extras).length > 0) {
|
||||
minutelyStatBean.extras = JSON.stringify(extras);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user