mirror of
https://github.com/yldio/copilot.git
synced 2024-11-14 23:30:05 +02:00
refactor(portal-data): lint
This commit is contained in:
parent
d7a8a55d22
commit
cb908d33e5
@ -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); });
|
||||
});
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user