Fixed a typo in function name
To add insult to injury: by a typo in the error logging function, the app would crash if there was a recoverable error
This commit is contained in:
parent
062faa0190
commit
35ff3489a5
|
|
@ -183,7 +183,7 @@ function createTSLinearSeries (maxSeriesLength = 0) {
|
|||
const mid = Math.floor(sortedArray.length / 2)
|
||||
return (sortedArray.length % 2 !== 0 ? sortedArray[mid] : ((sortedArray[mid - 1] + sortedArray[mid]) / 2))
|
||||
} else {
|
||||
log.eror('TS Linear Regressor, Median calculation on empty dataset attempted!')
|
||||
log.error('TS Linear Regressor, Median calculation on empty dataset attempted!')
|
||||
return 0
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue