mirror of
https://github.com/yldio/copilot.git
synced 2024-11-28 06:00:06 +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;
|
args.id = deploymentGroup.version_id;
|
||||||
|
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
return deploymentGroup.version_id
|
return deploymentGroup.version_id ?
|
||||||
? this.getVersion(args, resolveCb(resolve, reject))
|
this.getVersion(args, resolveCb(resolve, reject)) :
|
||||||
: resolve(null);
|
resolve(null);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -715,7 +715,7 @@ module.exports = class Data extends EventEmitter {
|
|||||||
manifest: { id: manifestId },
|
manifest: { id: manifestId },
|
||||||
currentVersion: currentVersion || {}
|
currentVersion: currentVersion || {}
|
||||||
});
|
});
|
||||||
}).catch((err) => cb(err));
|
}).catch((err) => { return cb(err); });
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user