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/i | |
| 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/i')
| -rw-r--r-- | src/api/endpoints/i/appdata/get.ts | 6 | ||||
| -rw-r--r-- | src/api/endpoints/i/appdata/set.ts | 6 | ||||
| -rw-r--r-- | src/api/endpoints/i/authorized_apps.ts | 6 | ||||
| -rw-r--r-- | src/api/endpoints/i/favorites.ts | 6 | ||||
| -rw-r--r-- | src/api/endpoints/i/notifications.ts | 6 | ||||
| -rw-r--r-- | src/api/endpoints/i/signin_history.ts | 6 | ||||
| -rw-r--r-- | src/api/endpoints/i/update.ts | 6 |
7 files changed, 7 insertions, 35 deletions
diff --git a/src/api/endpoints/i/appdata/get.ts b/src/api/endpoints/i/appdata/get.ts index 7f1bdf0713..ccd8202531 100644 --- a/src/api/endpoints/i/appdata/get.ts +++ b/src/api/endpoints/i/appdata/get.ts @@ -1,5 +1,3 @@ -'use strict'; - /** * Module dependencies */ @@ -14,9 +12,7 @@ import Appdata from '../../../models/appdata'; * @param {Boolean} isSecure * @return {Promise<any>} */ -module.exports = (params, user, app, isSecure) => - new Promise(async (res, rej) => -{ +module.exports = (params, user, app, isSecure) => new Promise(async (res, rej) => { // Get 'key' parameter let key = params.key; if (key === undefined) { diff --git a/src/api/endpoints/i/appdata/set.ts b/src/api/endpoints/i/appdata/set.ts index 57001f4e8b..354935cb4c 100644 --- a/src/api/endpoints/i/appdata/set.ts +++ b/src/api/endpoints/i/appdata/set.ts @@ -1,5 +1,3 @@ -'use strict'; - /** * Module dependencies */ @@ -17,9 +15,7 @@ import event from '../../../event'; * @param {Boolean} isSecure * @return {Promise<any>} */ -module.exports = (params, user, app, isSecure) => - new Promise(async (res, rej) => -{ +module.exports = (params, user, app, isSecure) => new Promise(async (res, rej) => { const data = params.data; if (data == null) { return rej('data is required'); diff --git a/src/api/endpoints/i/authorized_apps.ts b/src/api/endpoints/i/authorized_apps.ts index fb56a107e7..ed3670c7da 100644 --- a/src/api/endpoints/i/authorized_apps.ts +++ b/src/api/endpoints/i/authorized_apps.ts @@ -1,5 +1,3 @@ -'use strict'; - /** * Module dependencies */ @@ -14,9 +12,7 @@ import serialize from '../../serializers/app'; * @param {any} user * @return {Promise<any>} */ -module.exports = (params, user) => - new Promise(async (res, rej) => -{ +module.exports = (params, user) => 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'); diff --git a/src/api/endpoints/i/favorites.ts b/src/api/endpoints/i/favorites.ts index c04d318379..11de625be5 100644 --- a/src/api/endpoints/i/favorites.ts +++ b/src/api/endpoints/i/favorites.ts @@ -1,5 +1,3 @@ -'use strict'; - /** * Module dependencies */ @@ -14,9 +12,7 @@ import serialize from '../../serializers/post'; * @param {any} user * @return {Promise<any>} */ -module.exports = (params, user) => - new Promise(async (res, rej) => -{ +module.exports = (params, user) => 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'); diff --git a/src/api/endpoints/i/notifications.ts b/src/api/endpoints/i/notifications.ts index 4f4f0780b0..e6c6558fb1 100644 --- a/src/api/endpoints/i/notifications.ts +++ b/src/api/endpoints/i/notifications.ts @@ -1,5 +1,3 @@ -'use strict'; - /** * Module dependencies */ @@ -15,9 +13,7 @@ import getFriends from '../../common/get-friends'; * @param {any} user * @return {Promise<any>} */ -module.exports = (params, user) => - new Promise(async (res, rej) => -{ +module.exports = (params, user) => new Promise(async (res, rej) => { // Get 'following' parameter const [following, followingError] = it(params.following).expect.boolean().default(false).qed(); diff --git a/src/api/endpoints/i/signin_history.ts b/src/api/endpoints/i/signin_history.ts index eb8fc8c23f..d549f682cb 100644 --- a/src/api/endpoints/i/signin_history.ts +++ b/src/api/endpoints/i/signin_history.ts @@ -1,5 +1,3 @@ -'use strict'; - /** * Module dependencies */ @@ -14,9 +12,7 @@ import serialize from '../../serializers/signin'; * @param {any} user * @return {Promise<any>} */ -module.exports = (params, user) => - new Promise(async (res, rej) => -{ +module.exports = (params, user) => 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'); diff --git a/src/api/endpoints/i/update.ts b/src/api/endpoints/i/update.ts index b0c14777ef..1895d28375 100644 --- a/src/api/endpoints/i/update.ts +++ b/src/api/endpoints/i/update.ts @@ -1,5 +1,3 @@ -'use strict'; - /** * Module dependencies */ @@ -19,9 +17,7 @@ import config from '../../../conf'; * @param {boolean} isSecure * @return {Promise<any>} */ -module.exports = async (params, user, _, isSecure) => - new Promise(async (res, rej) => -{ +module.exports = async (params, user, _, isSecure) => new Promise(async (res, rej) => { // Get 'name' parameter const [name, nameErr] = it(params.name).expect.string().validate(isValidName).qed(); if (nameErr) return rej('invalid name param'); |