This commit is contained in:
Aya Morisawa 2017-02-27 16:18:47 +09:00
parent 2c7b320fe6
commit 296a884fdf

View file

@ -40,8 +40,7 @@ import git from 'git-last-commit';
* @return {Promise<object>} * @return {Promise<object>}
*/ */
module.exports = (params) => module.exports = (params) =>
new Promise(async (res, rej) => new Promise(async (res, rej) => {
{
const commit = await prominence(git).getLastCommit(); const commit = await prominence(git).getLastCommit();
res({ res({
@ -49,4 +48,4 @@ module.exports = (params) =>
commit: commit.shortHash, commit: commit.shortHash,
secure: config.https.enable secure: config.https.enable
}); });
}); });