Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ericvergnaud committed Mar 10, 2024
1 parent d725c6e commit e4a77df
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions runtime/JavaScript/src/antlr4/misc/BitSet.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export default class BitSet {
}

minValue() {
for (let k = 0; k < this.data.length; ++k) {
for (let k = 0; k < this.data.length; ++k) {
let l = this.data[k];
if (l !== 0) {
let result = 0;
Expand All @@ -90,8 +90,8 @@ export default class BitSet {
return "{" + this.values().join(", ") + "}";
}

get length(){
return this.data.map(l => BitSet._bitCount(l)).reduce((s,v) => s + v, 0);
get length() {
return this.data.map(l => BitSet._bitCount(l)).reduce((s, v) => s + v, 0);
}

_resize(index) {
Expand All @@ -106,7 +106,7 @@ export default class BitSet {
}

static _checkIndex(index) {
if(index < 0)
if (index < 0)
throw new RangeError("index cannot be negative");
}

Expand Down

0 comments on commit e4a77df

Please sign in to comment.