Follow linter

This commit is contained in:
syuilo
2017-03-04 04:28:38 +09:00
parent 4e3d617797
commit 3c1b92baa1
70 changed files with 514 additions and 780 deletions

View File

@@ -1,5 +1,3 @@
'use strict';
/**
* Module dependencies
*/
@@ -15,9 +13,7 @@ import serialize from '../../serializers/post';
* @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 'user_id' parameter
const [userId, userIdErr] = it(params.user_id, 'id');
if (userIdErr) return rej('invalid user_id param');