Simplify some code

This commit is contained in:
Simon Warta 2020-01-30 08:42:42 +01:00
parent 8fa2a15ed1
commit 55700b2157
2 changed files with 1 additions and 2 deletions

View File

@ -12,7 +12,7 @@ export async function generate(args: ReadonlyArray<string>): Promise<void> {
const codecName = codecFromString(args[0]);
const chainId = args[1] as ChainId;
const mnemonic = Bip39.encode(await Random.getBytes(16)).toString();
const mnemonic = Bip39.encode(Random.getBytes(16)).toString();
console.info(`FAUCET_MNEMONIC="${mnemonic}"`);
const profile = new UserProfile();

View File

@ -4,7 +4,6 @@ export function main(args: ReadonlyArray<string>): void {
if (args.length < 1) {
help();
process.exit(1);
return;
}
const action = args[0];