Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[chore](featuregate): use errors.Join instead of multierr.Append #9410

Closed
wants to merge 1 commit into from
Closed

[chore](featuregate): use errors.Join instead of multierr.Append #9410

wants to merge 1 commit into from

Conversation

mmorel-35
Copy link
Contributor

@mmorel-35 mmorel-35 commented Jan 28, 2024

Description: use errors.Join instead of multierr.Append

Link to tracking Issue: #8210

@mmorel-35 mmorel-35 requested review from a team and djaglowski January 28, 2024 10:03
Copy link

codecov bot commented Jan 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (ca0eab2) 90.45% compared to head (cf7de7e) 90.45%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #9410   +/-   ##
=======================================
  Coverage   90.45%   90.45%           
=======================================
  Files         346      346           
  Lines       18131    18131           
=======================================
  Hits        16400    16400           
  Misses       1399     1399           
  Partials      332      332           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -59,7 +58,7 @@ func (f *flagValue) Set(s string) error {
case '+':
id = id[1:]
}
errs = multierr.Append(errs, f.reg.Set(id, val))
errs = errors.Join(errs, f.reg.Set(id, val))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can check on Monday, but I believe this will change the output of the error format in this case. I believe to be equivalent using errors.Join you'll need to keep a slice of errors and then join them at the end.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
@mmorel-35 mmorel-35 closed this by deleting the head repository Feb 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants