remove these bounds checks
This commit is contained in:
parent
fd3f86c8a5
commit
2873351496
|
@ -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]
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue