From: AJ ONeal Date: Tue, 21 Jun 2022 06:30:29 +0000 (-0600) Subject: chore: remove superfluous .then X-Git-Tag: v1.2.0~3 X-Git-Url: https://git.josue.xyz/?p=crowdnode.js%2F.git;a=commitdiff_plain;h=3561bf72d0e69d7a84e8b2d5915344b5c21cb9b4 chore: remove superfluous .then --- 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); }