From 287335149609aae4c4d3bb6090e8bb81b31804a9 Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Thu, 4 Feb 2016 17:42:08 -0800 Subject: [PATCH] remove these bounds checks --- cmds/code.nim | 3 --- cmds/newSecret.nim | 3 --- 2 files changed, 6 deletions(-) diff --git a/cmds/code.nim b/cmds/code.nim index 433734e..dec86b8 100644 --- a/cmds/code.nim +++ b/cmds/code.nim @@ -9,9 +9,6 @@ name in the secret store. """ proc code*(root: string, args: seq[string]) = - if args.len != 1: - quit "I need a machine name" - try: var keyFileName = args[0] diff --git a/cmds/newSecret.nim b/cmds/newSecret.nim index 5ba3f47..36ac5cf 100644 --- a/cmds/newSecret.nim +++ b/cmds/newSecret.nim @@ -17,9 +17,6 @@ available for `totptool code` instantly. """ proc newSecret*(root: string, args: seq[string]) = - if args.len != 1: - quit "I need a machine name" - var res = generateUUID()[0 .. 19] body: string