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
*/
@ -69,9 +67,7 @@ import serialize from '../../serializers/app';
* @param {any} user
* @return {Promise<any>}
*/
module.exports = async (params, user) =>
new Promise(async (res, rej) =>
{
module.exports = async (params, user) => new Promise(async (res, rej) => {
// Get 'name_id' parameter
const [nameId, nameIdErr] = it(params.name_id).expect.string().required().validate(isValidNameId).qed();
if (nameIdErr) return rej('invalid name_id param');

View file

@ -1,5 +1,3 @@
'use strict';
/**
* Module dependencies
*/
@ -42,9 +40,7 @@ import { isValidNameId } from '../../../models/app';
* @param {any} params
* @return {Promise<any>}
*/
module.exports = async (params) =>
new Promise(async (res, rej) =>
{
module.exports = async (params) => new Promise(async (res, rej) => {
// Get 'name_id' parameter
const [nameId, nameIdErr] = it(params.name_id).expect.string().required().validate(isValidNameId).qed();
if (nameIdErr) return rej('invalid name_id param');

View file

@ -1,5 +1,3 @@
'use strict';
/**
* Module dependencies
*/
@ -46,9 +44,7 @@ import serialize from '../../serializers/app';
* @param {any} isSecure
* @return {Promise<any>}
*/
module.exports = (params, user, _, isSecure) =>
new Promise(async (res, rej) =>
{
module.exports = (params, user, _, isSecure) => new Promise(async (res, rej) => {
// Get 'app_id' parameter
const [appId, appIdErr] = it(params.app_id, 'id');
if (appIdErr) return rej('invalid app_id param');