Do not disable require-atomic-updates and no-unused-vars

This commit is contained in:
Vitaliy Filippov
2024-04-20 02:02:13 +03:00
parent 2c0801f6e4
commit 87b3ab94fe
6 changed files with 8 additions and 17 deletions
+1 -1
View File
@@ -215,7 +215,7 @@ function calc_intersect_weights(old_pg_size, pg_size, pg_count, prev_weights, al
{
const intersect_count = ordered
? pg.reduce((a, osd, i) => a + (prev_hash[osd] == 1+i ? 1 : 0), 0)
: pg.reduce((a, osd, i) => a + (prev_hash[osd] ? 1 : 0), 0);
: pg.reduce((a, osd) => a + (prev_hash[osd] ? 1 : 0), 0);
if (max_int < intersect_count)
{
max_int = intersect_count;