Other: Disallow omitting curly braces and enforce one true brace style

Do this by updating the ESLint config accordingly and also fix new
complaints.
This commit is contained in:
June 2023-01-28 23:34:15 +01:00
commit cedb54ed64
No known key found for this signature in database
GPG key ID: 094C2AC34192FA11
6 changed files with 44 additions and 19 deletions

View file

@ -67,7 +67,9 @@ var PrefsBoxOrderListBox = GObject.registerClass({
let currentBoxOrder = [];
for (let potentialPrefsBoxOrderItemRow of this) {
// Only process PrefsBoxOrderItemRows.
if (potentialPrefsBoxOrderItemRow.constructor.$gtype.name !== "PrefsBoxOrderItemRow") continue;
if (potentialPrefsBoxOrderItemRow.constructor.$gtype.name !== "PrefsBoxOrderItemRow") {
continue;
}
const item = potentialPrefsBoxOrderItemRow.item;
currentBoxOrder.push(item);