mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
etcdctl: minor cleanup
This commit is contained in:
@@ -38,7 +38,7 @@ func NewMakeDirCommand() cli.Command {
|
||||
// makeDirCommandFunc executes the "mkdir" command.
|
||||
func makeDirCommandFunc(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]
|
||||
ttl := c.Int("ttl")
|
||||
|
||||
Reference in New Issue
Block a user