Skip to content
Snippets Groups Projects
Commit e3b50384 authored by Ayc0's avatar Ayc0
Browse files

Remove useless promise.resolve

parent 173c505e
No related branches found
No related tags found
No related merge requests found
...@@ -19,7 +19,7 @@ const interval = (fn, initialTTL, output = {}) => { ...@@ -19,7 +19,7 @@ const interval = (fn, initialTTL, output = {}) => {
if (this.cleared) { if (this.cleared) {
return; return;
} }
TTL = await Promise.resolve(fn()); TTL = await fn();
} catch (error) { } catch (error) {
console.error(error); console.error(error);
TTL = initialTTL; TTL = initialTTL;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment