From c9928dd21652c7ead38102e6e883d2e9e656f7f4 Mon Sep 17 00:00:00 2001 From: 2hwk Date: Mon, 2 Jan 2023 19:14:44 +0800 Subject: [PATCH] meta: fix lint --- .../html_ui/Pages/A32NX_Core/A32NX_Boarding.js | 4 ++-- .../html_ui/Pages/A32NX_Utils/bitFlags.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/flybywire-aircraft-a320-neo/html_ui/Pages/A32NX_Core/A32NX_Boarding.js b/flybywire-aircraft-a320-neo/html_ui/Pages/A32NX_Core/A32NX_Boarding.js index fc4368132348..259be1c53cac 100644 --- a/flybywire-aircraft-a320-neo/html_ui/Pages/A32NX_Core/A32NX_Boarding.js +++ b/flybywire-aircraft-a320-neo/html_ui/Pages/A32NX_Core/A32NX_Boarding.js @@ -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); diff --git a/flybywire-aircraft-a320-neo/html_ui/Pages/A32NX_Utils/bitFlags.js b/flybywire-aircraft-a320-neo/html_ui/Pages/A32NX_Utils/bitFlags.js index e78210f60949..65172a444dbe 100644 --- a/flybywire-aircraft-a320-neo/html_ui/Pages/A32NX_Utils/bitFlags.js +++ b/flybywire-aircraft-a320-neo/html_ui/Pages/A32NX_Utils/bitFlags.js @@ -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); }