10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-07-23 11:17:42 +02:00

Fix doublon assertion

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

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])
} }
} }