Skip to content

Commit

Permalink
multierror.Append is assigned to the errs variable
Browse files Browse the repository at this point in the history
Signed-off-by: Marco Pfirrmann <marco.pfirrmann@tngtech.com>
  • Loading branch information
mpfirrmann authored and alexzurbonsen committed May 4, 2022
1 parent 151fcef commit aefbd7c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -345,13 +345,13 @@ func (srv *CentralSessionController) Enable(
if !srv.cfg.DisableGx {
err := srv.policyClient.EnableConnections()
if err != nil {
multierror.Append(errs, errors.Errorf("An error occurred while enabling connections; policyClient err: %s", err))
errs = multierror.Append(errs, errors.Errorf("An error occurred while enabling connections; policyClient err: %s", err))
}
}
if !srv.cfg.DisableGy {
err := srv.creditClient.EnableConnections()
if err != nil {
multierror.Append(errs, errors.Errorf("An error occurred while enabling connections; creditClient err: %s", err))
errs = multierror.Append(errs, errors.Errorf("An error occurred while enabling connections; creditClient err: %s", err))
}
}
return &orcprotos.Void{}, errs.ErrorOrNil()
Expand Down

0 comments on commit aefbd7c

Please sign in to comment.