mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 11:21:47 +00:00
Merge pull request #103037 from navist2020/cleanup/WrapfToErrorf
Use errors.Errorf instead of errors.Wrapf when the err is nil
This commit is contained in:
commit
e1628dac4a
@ -213,7 +213,7 @@ func (e *Runner) Run(args []string) error {
|
||||
// Errors if phases that are meant to create special subcommands only
|
||||
// are wrongly assigned Run Methods
|
||||
if p.RunAllSiblings && (p.RunIf != nil || p.Run != nil) {
|
||||
return errors.Wrapf(err, "phase marked as RunAllSiblings can not have Run functions %s", p.generatedName)
|
||||
return errors.Errorf("phase marked as RunAllSiblings can not have Run functions %s", p.generatedName)
|
||||
}
|
||||
|
||||
// If the phase defines a condition to be checked before executing the phase action.
|
||||
|
Loading…
Reference in New Issue
Block a user