mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-22 13:19:06 +00:00
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…
x
Reference in New Issue
Block a user