From cb908d33e5d7c7a06eeb6980a962f24aa99b8d86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Se=CC=81rgio=20Ramos?= Date: Tue, 27 Jun 2017 18:47:44 +0100 Subject: [PATCH] refactor(portal-data): lint --- packages/portal-data/lib/index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/portal-data/lib/index.js b/packages/portal-data/lib/index.js index 1cae9350..f7aa94f1 100644 --- a/packages/portal-data/lib/index.js +++ b/packages/portal-data/lib/index.js @@ -269,9 +269,9 @@ module.exports = class Data extends EventEmitter { args.id = deploymentGroup.version_id; return new Promise((resolve, reject) => { - return deploymentGroup.version_id - ? this.getVersion(args, resolveCb(resolve, reject)) - : resolve(null); + return deploymentGroup.version_id ? + this.getVersion(args, resolveCb(resolve, reject)) : + resolve(null); }); }; @@ -715,7 +715,7 @@ module.exports = class Data extends EventEmitter { manifest: { id: manifestId }, currentVersion: currentVersion || {} }); - }).catch((err) => cb(err)); + }).catch((err) => { return cb(err); }); }); }); }