ci: Add lint rule for mandatory curly braces (#9348)
This commit is contained in:
@@ -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.';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user