From d710ecbd4d12872a26d812ab0f13963198a7db2f Mon Sep 17 00:00:00 2001 From: James Bardin Date: Fri, 17 Feb 2017 20:28:34 -0500 Subject: [PATCH] Fix regression from not having an real unlock test args were sliced incorrectly. --- command/unlock.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/command/unlock.go b/command/unlock.go index 2e197e7753..b50713aaa6 100644 --- a/command/unlock.go +++ b/command/unlock.go @@ -33,10 +33,7 @@ func (c *UnlockCommand) Run(args []string) int { } lockID := args[0] - - if len(args) > 1 { - args = args[1:] - } + args = args[1:] // assume everything is initialized. The user can manually init if this is // required.