etcdctl: minor cleanup

This commit is contained in:
Xiang Li
2015-06-02 19:44:26 -07:00
parent 079e7c10a0
commit f0edf06b6d
8 changed files with 10 additions and 12 deletions

View File

@ -41,7 +41,7 @@ func NewRemoveCommand() cli.Command {
// removeCommandFunc executes the "rm" command.
func removeCommandFunc(c *cli.Context, client *etcd.Client) (*etcd.Response, error) {
if len(c.Args()) == 0 {
return nil, errors.New("Key required")
return nil, errors.New("key required")
}
key := c.Args()[0]
recursive := c.Bool("recursive")