ci: Add lint rule for mandatory curly braces (#9348)

This commit is contained in:
Manuel
2024-10-16 19:57:42 +02:00
committed by GitHub
parent 714acaa906
commit dfd5a8edbf
22 changed files with 145 additions and 137 deletions

View File

@@ -139,7 +139,7 @@ export class Config {
}
static validateCustomPages(customPages) {
if (!customPages) return;
if (!customPages) { return; }
if (Object.prototype.toString.call(customPages) !== '[object Object]') {
throw Error('Parse Server option customPages must be an object.');
@@ -209,7 +209,7 @@ export class Config {
}
static validateSchemaOptions(schema: SchemaOptions) {
if (!schema) return;
if (!schema) { return; }
if (Object.prototype.toString.call(schema) !== '[object Object]') {
throw 'Parse Server option schema must be an object.';
}