fix trailingComma

This commit is contained in:
Alexey 2021-07-06 13:51:06 +03:00
parent 4a63b3b7fb
commit 29021a8028
2 changed files with 4 additions and 3 deletions

View File

@ -2,5 +2,6 @@
"semi": false, "semi": false,
"arrowParens": "always", "arrowParens": "always",
"singleQuote": true, "singleQuote": true,
"printWidth": 110 "printWidth": 110,
"trailingComma": "all"
} }

View File

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