chore: remove superfluous .then
authorAJ ONeal <coolaj86@gmail.com>
Tue, 21 Jun 2022 06:30:29 +0000 (00:30 -0600)
committerAJ ONeal <coolaj86@gmail.com>
Tue, 21 Jun 2022 06:30:29 +0000 (00:30 -0600)
bin/crowdnode.js

index 943eaa83ad6f071ca534a5b3f97d8765f674e59c..60a251f451d7b43f6f92fff2446e9f4ac995acd2 100755 (executable)
@@ -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);
 }