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

@@ -55,7 +55,7 @@ func printGet(resp *etcd.Response, format string) {
// getCommandFunc executes the "get" command.
func getCommandFunc(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]
sorted := c.Bool("sort")