Harmonize BeforeError usage in Command#Run

This commit is contained in:
Aloïs Micard 2020-04-28 08:03:26 +02:00
parent 33744eb004
commit c261e4dbd3
No known key found for this signature in database
GPG Key ID: 1A0EB82F071F5EFE

View File

@ -150,7 +150,6 @@ func (c *Command) Run(ctx *Context) (err error) {
if c.Before != nil {
err = c.Before(context)
if err != nil {
_ = ShowCommandHelp(context, c.Name)
context.App.handleExitCoder(context, err)
return err
}