diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-03-04 04:28:38 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-03-04 04:28:38 +0900 |
| commit | 3c1b92baa1ac15c23fe63e2f50739105252ca516 (patch) | |
| tree | 35a0ae58802891f05209c83e780440775075e088 /src/api/endpoints/users/recommendation.ts | |
| parent | Merge pull request #233 from syuilo/greenkeeper/inquirer-3.0.6 (diff) | |
| download | misskey-3c1b92baa1ac15c23fe63e2f50739105252ca516.tar.gz misskey-3c1b92baa1ac15c23fe63e2f50739105252ca516.tar.bz2 misskey-3c1b92baa1ac15c23fe63e2f50739105252ca516.zip | |
Follow linter
Diffstat (limited to 'src/api/endpoints/users/recommendation.ts')
| -rw-r--r-- | src/api/endpoints/users/recommendation.ts | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/api/endpoints/users/recommendation.ts b/src/api/endpoints/users/recommendation.ts index c37ae4c978..f502f41269 100644 --- a/src/api/endpoints/users/recommendation.ts +++ b/src/api/endpoints/users/recommendation.ts @@ -1,5 +1,3 @@ -'use strict'; - /** * Module dependencies */ @@ -15,9 +13,7 @@ import getFriends from '../../common/get-friends'; * @param {any} me * @return {Promise<any>} */ -module.exports = (params, me) => - new Promise(async (res, rej) => -{ +module.exports = (params, me) => new Promise(async (res, rej) => { // Get 'limit' parameter const [limit, limitErr] = it(params.limit).expect.number().range(1, 100).default(10).qed(); if (limitErr) return rej('invalid limit param'); |