mirror of
https://github.com/tornadocash/fixed-merkle-tree.git
synced 2024-11-22 01:37:09 +01:00
fix trailingComma
This commit is contained in:
parent
4a63b3b7fb
commit
29021a8028
@ -2,5 +2,6 @@
|
|||||||
"semi": false,
|
"semi": false,
|
||||||
"arrowParens": "always",
|
"arrowParens": "always",
|
||||||
"singleQuote": true,
|
"singleQuote": true,
|
||||||
"printWidth": 110
|
"printWidth": 110,
|
||||||
|
"trailingComma": "all"
|
||||||
}
|
}
|
||||||
|
@ -49,7 +49,7 @@ class MerkleTree {
|
|||||||
this._layers[level - 1][i * 2],
|
this._layers[level - 1][i * 2],
|
||||||
i * 2 + 1 < this._layers[level - 1].length
|
i * 2 + 1 < this._layers[level - 1].length
|
||||||
? this._layers[level - 1][i * 2 + 1]
|
? this._layers[level - 1][i * 2 + 1]
|
||||||
: this._zeros[level - 1]
|
: this._zeros[level - 1],
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -102,7 +102,7 @@ class MerkleTree {
|
|||||||
this._layers[level - 1][index * 2],
|
this._layers[level - 1][index * 2],
|
||||||
index * 2 + 1 < this._layers[level - 1].length
|
index * 2 + 1 < this._layers[level - 1].length
|
||||||
? this._layers[level - 1][index * 2 + 1]
|
? this._layers[level - 1][index * 2 + 1]
|
||||||
: this._zeros[level - 1]
|
: this._zeros[level - 1],
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user