remove these bounds checks

This commit is contained in:
Christine Dodrill 2016-02-04 17:42:08 -08:00
parent fd3f86c8a5
commit 2873351496
2 changed files with 0 additions and 6 deletions

View File

@ -9,9 +9,6 @@ name in the secret store.
""" """
proc code*(root: string, args: seq[string]) = proc code*(root: string, args: seq[string]) =
if args.len != 1:
quit "I need a machine name"
try: try:
var var
keyFileName = args[0] keyFileName = args[0]

View File

@ -17,9 +17,6 @@ available for `totptool code` instantly.
""" """
proc newSecret*(root: string, args: seq[string]) = proc newSecret*(root: string, args: seq[string]) =
if args.len != 1:
quit "I need a machine name"
var var
res = generateUUID()[0 .. 19] res = generateUUID()[0 .. 19]
body: string body: string