From 728ac80f9cc8a3268bdced6339f58936bd69648b Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Thu, 22 Dec 2022 09:51:53 -0800 Subject: prettier --- lib/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/utils.js') diff --git a/lib/utils.js b/lib/utils.js index 7fdd10b3..46267dbd 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -172,7 +172,7 @@ export const derivePayRequest = async ({ amount, memo, tip }) => { ).bolt11; }; -export const sleep = (n) => new Promise((r) => setTimeout(r, n)); +export const sleep = n => new Promise(r => setTimeout(r, n)); export const wait = async (f, s = 300, n = 1000) => { let i = 0; while (!(await f()) && i < s) (await sleep(n)) && i++; -- cgit v1.2.3