mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-04-27 22:41:10 -05:00
extract handleOriginalAction and check if Before() exists before calling it
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
This commit is contained in:
@@ -18,12 +18,7 @@ func WebCommand(cfg *config.Config) *cli.Command {
|
||||
Flags: flagset.ServerWithConfig(cfg.Web),
|
||||
Action: func(c *cli.Context) error {
|
||||
origCmd := command.Server(configureWeb(cfg))
|
||||
|
||||
if err := origCmd.Before(c); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return cli.HandleAction(origCmd.Action, c)
|
||||
return handleOriginalAction(c, origCmd)
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user