diff --git a/src/004-base/facility.js b/src/004-base/facility.js index f65205771c54210ec1301432260f0a97ecb0a7c0..d21da48c58ac1371628a6e9d868fc73534bbe85a 100644 --- a/src/004-base/facility.js +++ b/src/004-base/facility.js @@ -340,9 +340,7 @@ App.Entity.Facilities.Facility = class { */ isHosted(slave) { for (const j in this._jobs) { - if (this._jobs[j].isEmployed(slave)) { - return true; - } + if (this._jobs[j].isEmployed(slave)) { return true; } } return false; diff --git a/src/art/vector/VectorArtJS.js b/src/art/vector/VectorArtJS.js index 90813924360ea43a9648ede0cc29b1f383317a69..accfb9ada6eeb858346a161a135cf56c0facff49 100644 --- a/src/art/vector/VectorArtJS.js +++ b/src/art/vector/VectorArtJS.js @@ -303,8 +303,8 @@ window.VectorArt = (function() { case "a penitent nuns habit": if ((canAchieveErection(slave)) && (slave.chastityPenis !== 1)) { penisArtString = jsInclude(`Art_Vector_Bulge_Outfit_Hard_${penisSize}`); + break; /* IN CASE OF NO ERECTION, SKIP TO A NORMAL BULGE */ // FIXME: having a break in an if is bad code } - // break; /* IN CASE OF NO ERECTION, SKIP TO A NORMAL BULGE */ /* BULGE OUTFITS LONG OUTFITS */ // eslint-disable-next-line no-fallthrough case "a cheerleader outfit": diff --git a/src/debugging/debugJS.js b/src/debugging/debugJS.js index 9c519d0edc6ad03930d0c04d76885d03d8a8d253..c189e30b7cc3358f688d374889a9d0b8ab7b9003 100644 --- a/src/debugging/debugJS.js +++ b/src/debugging/debugJS.js @@ -59,9 +59,7 @@ window.diffFlatten = function diffFlatten(data) { recurse(cur[i], prop + "[" + i + "]"); } // eslint-disable-next-line block-scoped-var - if (l === 0) { - result[prop] = []; - } + if (l === 0) { result[prop] = []; } } else { let isEmpty = true; for (let p in cur) { diff --git a/src/js/hTagMacroJS.js b/src/js/hTagMacroJS.js index 9bcfdfd69a41e25626a817e0a79c6b23827e1397..6918db8d6270cf5814f550071268aa1d61710645 100644 --- a/src/js/hTagMacroJS.js +++ b/src/js/hTagMacroJS.js @@ -1,4 +1,5 @@ -/* + + /* * <<htag>> macro * A simple macro which allows to create wrapping html elements with dynamic IDs. * idea blatantly robbed from the spanMacroJS.tw but expanded to a more generic @@ -25,7 +26,11 @@ Macro.add('htag', { if (1 > this.args.length) { return this.error('invalid syntax, format: <<htag [id [ tag ] | attributes [ tag ] >>'); } if (1 < this.args.length) { htag = String(this.args[1]).trim(); } - if ("object" === typeof this.args[0]) { attributes = $.map(this.args[0], munge).join(" "); } else { attributes = `id="${String(this.args[0]).trim()}"`; } + if ("object" === typeof this.args[0]) { + attributes = $.map(this.args[0], munge).join(" "); + } else { + attributes = `id="${String(this.args[0]).trim()}"`; + } if (Config.debug) { this.debugView.modes({