diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-04-23 15:55:37 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-04-23 15:55:37 +0900 |
| commit | a3bd039bcf69828b7443259348192f959169f0ad (patch) | |
| tree | 8e7eadd7fc67594575635f33ff46bf217c379906 | |
| parent | Refactoring (diff) | |
| download | misskey-a3bd039bcf69828b7443259348192f959169f0ad.tar.gz misskey-a3bd039bcf69828b7443259348192f959169f0ad.tar.bz2 misskey-a3bd039bcf69828b7443259348192f959169f0ad.zip | |
Refactoring
| -rw-r--r-- | src/api/api-handler.ts | 2 | ||||
| -rw-r--r-- | 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 4cde538ae1..fb603a0e2a 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 6e9341f910..04c4226aa1 100644 --- a/src/index.ts +++ b/src/index.ts @@ -121,7 +121,7 @@ async function init(): Promise<Config> { return config; } -function spawnWorkers(onComplete: any) { +function spawnWorkers(onComplete: Function) { // Count the machine's CPUs const cpuCount = os.cpus().length; |