Skip to content

Commit

Permalink
meta: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
2hwk committed Jan 7, 2023
1 parent e547b41 commit c9928dd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ class A32NX_Boarding {

if (paxDiff > 0) {
const fillChoices = station.desiredFlags.getFilledSeatIds()
.filter(seatIndex => !station.activeFlags.getFilledSeatIds().includes(seatIndex))
.filter(seatIndex => !station.activeFlags.getFilledSeatIds().includes(seatIndex));
station.activeFlags.fillSeats(Math.abs(paxDiff), fillChoices);
} else if (paxDiff < 0) {
const emptyChoices = station.desiredFlags.getEmptySeatIds()
.filter(seatIndex => !station.activeFlags.getEmptySeatIds().includes(seatIndex))
.filter(seatIndex => !station.activeFlags.getEmptySeatIds().includes(seatIndex));
station.activeFlags.emptySeats(Math.abs(paxDiff), emptyChoices);
} else {
this.shufflePax(station);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,12 @@ class SeatFlags extends BitFlags {
}

isSeatFilled(seatId) {
if (seatId > this.totalSeats) return false;
if (seatId > this.totalSeats) { return false; }
return this.getBitIndex(seatId);
}

toggleSeatId(seatId) {
if (seatId > this.totalSeats) return;
if (seatId > this.totalSeats) { return; }
this.toggleBitIndex(seatId);
}

Expand Down

0 comments on commit c9928dd

Please sign in to comment.