Remove condition for passing ctx to child command

This commit is contained in:
Unknown 2020-05-19 17:07:17 -03:00
parent d58c46a0d6
commit a081152dc5

View file

@ -949,9 +949,7 @@ func (c *Command) ExecuteC() (cmd *Command, err error) {
// We have to pass global context to children command
// if context is present on the parent command.
if cmd.ctx == nil {
cmd.ctx = c.ctx
}
cmd.ctx = c.ctx
err = cmd.execute(flags)
if err != nil {