Przeglądaj źródła

Removed unnecesary `async`.

Eugene Lazutkin 3 lat temu
rodzic
commit
006a65d743
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      tests/helpers.mjs

+ 1 - 1
tests/helpers.mjs

@@ -39,7 +39,7 @@ export const writeToArray = array => new Writable({
   }
   }
 });
 });
 
 
-export const delay = (fn, ms = 20) => async (...args) =>
+export const delay = (fn, ms = 20) => (...args) =>
   new Promise((resolve, reject) => {
   new Promise((resolve, reject) => {
     setTimeout(() => {
     setTimeout(() => {
       try {
       try {