Follow linter
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* Module dependencies
|
||||
*/
|
||||
@@ -14,9 +12,7 @@ import serialize from '../../../serializers/drive-file';
|
||||
* @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 'file_id' parameter
|
||||
const [fileId, fileIdErr] = it(params.file_id).expect.id().required().qed();
|
||||
if (fileIdErr) return rej('invalid file_id param');
|
||||
|
Reference in New Issue
Block a user