10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-12-25 05:43:46 +01:00

Fix doublon assertion

This commit is contained in:
Mickaël Véril 2020-03-26 17:53:42 +01:00
parent 52f536a654
commit 76d4582c83

View File

@ -333,7 +333,7 @@ class dataFileBase {
// Find if there is a duplicate or not // Find if there is a duplicate or not
if (stfy.indexOf(element, i + 1) >= 0) { if (stfy.indexOf(element, i + 1) >= 0) {
// Find if the element is already in the result array or not // Find if the element is already in the result array or not
if (result.indexOf(element) === -1) { if (double.indexOf(element) === -1) {
double.push(dat.excitations[i]) double.push(dat.excitations[i])
} }
} }