Skip to content
Snippets Groups Projects
Commit 296a884f authored by Aya Morisawa's avatar Aya Morisawa
Browse files

Clean up

parent 2c7b320f
No related branches found
No related tags found
No related merge requests found
......@@ -23,10 +23,10 @@ import git from 'git-last-commit';
* commit:
* description: latest commit's hash
* type: string
* secure:
* secure:
* description: whether the server supports secure protcols
* type: boolean
*
*
* default:
* description: Failed
* schema:
......@@ -40,13 +40,12 @@ import git from 'git-last-commit';
* @return {Promise<object>}
*/
module.exports = (params) =>
new Promise(async (res, rej) =>
{
const commit = await prominence(git).getLastCommit();
new Promise(async (res, rej) => {
const commit = await prominence(git).getLastCommit();
res({
maintainer: config.maintainer,
commit: commit.shortHash,
secure: config.https.enable
res({
maintainer: config.maintainer,
commit: commit.shortHash,
secure: config.https.enable
});
});
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment