From 3561bf72d0e69d7a84e8b2d5915344b5c21cb9b4 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Tue, 21 Jun 2022 00:30:29 -0600 Subject: [PATCH] chore: remove superfluous .then --- bin/crowdnode.js | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/bin/crowdnode.js b/bin/crowdnode.js index 943eaa8..60a251f 100755 --- a/bin/crowdnode.js +++ b/bin/crowdnode.js @@ -314,20 +314,19 @@ async function generate(name) { return; } - await Fs.writeFile(filepath, wif, "utf8").then(function () { - console.info(``); - console.info( - `Use the QR Code below to load a test deposit of Đ${testDash} onto your staking key.`, - ); - console.info(``); - showQr(pub, testDuff); - console.info(``); - console.info( - `Use the QR Code above to load a test deposit of Đ${testDash} onto your staking key.`, - ); - console.info(``); - console.info(`Generated ${filepath} ${note}`); - }); + await Fs.writeFile(filepath, wif, "utf8"); + console.info(``); + console.info( + `Use the QR Code below to load a test deposit of Đ${testDash} onto your staking key.`, + ); + console.info(``); + showQr(pub, testDuff); + console.info(``); + console.info( + `Use the QR Code above to load a test deposit of Đ${testDash} onto your staking key.`, + ); + console.info(``); + console.info(`Generated ${filepath} ${note}`); process.exit(0); } -- 2.25.1