timer function doesn't need to be async, since it returns a promise
This commit is contained in:
parent
aae7954020
commit
fa274675a5
|
@ -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 = {
|
||||
|
|
Loading…
Reference in New Issue