Skip to content

Commit

Permalink
Move lines
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Dec 12, 2021
1 parent 6f61395 commit 5f0e0b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/stats/cold.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,10 @@ const COLD_MAX_PERCENTAGE = 0.6
/* eslint-disable max-statements, complexity, fp/no-let, fp/no-loops,
fp/no-mutation, max-depth, no-continue */
const findClosestMean = function (array, { mean, minIndex, maxIndex, filter }) {
let closestMean = 0
let closestMeanDiff = Number.POSITIVE_INFINITY
let sum = 0
let filteredIndex = 0
let closestMean = 0
let closestMeanDiff = Number.POSITIVE_INFINITY

for (const value of array) {
if (!filter(value)) {
Expand Down

0 comments on commit 5f0e0b2

Please sign in to comment.