Skip to content

Commit a8dc3a1

Browse files
committed
chore(server): linted code in core.app
1 parent b036ac2 commit a8dc3a1

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

src/server/app/core.app.ts

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ export class CoreApp {
3434
const json = await this.getJSON();
3535
const isValid = this.validateJSON(json);
3636
if (isValid) {
37-
await this.setupApp();
38-
this.setupSwagger(json);
39-
await this.setupRoutes();
37+
await this.setupApp();
38+
this.setupSwagger(json);
39+
await this.setupRoutes();
4040
} else {
41-
Output.setError("provided json is not valid - see validation checks")
42-
throw Error("provided json is not valid - see validation checks");
41+
Output.setError('provided json is not valid - see validation checks');
42+
throw Error('provided json is not valid - see validation checks');
4343
}
4444
}
4545

@@ -79,14 +79,18 @@ export class CoreApp {
7979
}
8080

8181
protected async initializeLayers() {
82-
if (CoreApp.adapter && Object.entries(CoreApp.adapter).length === 0 && CoreApp.adapter.constructor === Object) {
82+
if (
83+
CoreApp.adapter &&
84+
Object.entries(CoreApp.adapter).length === 0 &&
85+
CoreApp.adapter.constructor === Object
86+
) {
8387
CoreApp.adapter = await lowdb.default(CoreApp.storage);
8488
}
8589
const router = jsonServer.router(CoreApp.adapter);
8690
const middlewares = jsonServer.defaults({
8791
readOnly: this.appConfig.readOnly,
8892
});
89-
return { middlewares, router};
93+
return { middlewares, router };
9094
}
9195

9296
protected setupServer(

0 commit comments

Comments
 (0)