timer function doesn't need to be async, since it returns a promise

This commit is contained in:
Michael Bradley, Jr 2018-09-19 21:11:55 -05:00
parent aae7954020
commit fa274675a5
1 changed files with 2 additions and 2 deletions

View File

@ -490,8 +490,8 @@ function errorMessage(e) {
return e;
}
async function timer(ms) {
return new Promise((resolve) => setTimeout(resolve, ms));
function timer(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
module.exports = {