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:
Jaap van Ekris 2023-01-10 11:44:37 +01:00 committed by GitHub
parent 062faa0190
commit 35ff3489a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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
}
}