From a3bd039bcf69828b7443259348192f959169f0ad Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 23 Apr 2017 15:55:37 +0900 Subject: [PATCH] Refactoring --- src/api/api-handler.ts | 2 +- src/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/api-handler.ts b/src/api/api-handler.ts index 4cde538ae..fb603a0e2 100644 --- a/src/api/api-handler.ts +++ b/src/api/api-handler.ts @@ -26,7 +26,7 @@ export default async (endpoint: Endpoint, req: express.Request, res: express.Res } if (ctx.app && endpoint.kind) { - if (!ctx.app.permission.some((p: any) => p === endpoint.kind)) { + if (!ctx.app.permission.some(p => p === endpoint.kind)) { return reply(403, 'ACCESS_DENIED'); } } diff --git a/src/index.ts b/src/index.ts index 6e9341f91..04c4226aa 100644 --- a/src/index.ts +++ b/src/index.ts @@ -121,7 +121,7 @@ async function init(): Promise { return config; } -function spawnWorkers(onComplete: any) { +function spawnWorkers(onComplete: Function) { // Count the machine's CPUs const cpuCount = os.cpus().length;