mirror of
https://github.com/sim1222/misskey.git
synced 2025-08-07 01:04:03 +09:00
Follow linter
This commit is contained in:
@ -1,5 +1,3 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* Module dependencies
|
||||
*/
|
||||
@ -21,9 +19,7 @@ import config from '../../../../conf';
|
||||
* @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 'user_id' parameter
|
||||
const [recipientId, recipientIdErr] = it(params.user_id).expect.id().required().qed();
|
||||
if (recipientIdErr) return rej('invalid user_id param');
|
||||
|
Reference in New Issue
Block a user