server/lib/house/house.disarm.js
Function disarm
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async function disarm(selector) {
// In case there is a timeout to arm this house, we clear it
clearTimeout(this.armingHouseTimeout.get(selector));
if (this.armingHouseTimeout.get(selector)) {
this.armingHouseTimeout.delete(selector);