Skip to content

Conversation

@SpeedyCoder
Copy link
Contributor

No description provided.

@SpeedyCoder SpeedyCoder requested review from a team, johanbrandhorst and rcrowe February 17, 2020 15:59
@SpeedyCoder SpeedyCoder requested a review from mjgarton February 19, 2020 14:13
func closeAll(closers []io.Closer) (outErr error) {
for _, c := range closers {
if err := c.Close(); err != nil {
outErr = multierror.Append(outErr, err)
Copy link
Contributor

Choose a reason for hiding this comment

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

closeAll would be about 1 line longer if it didn't use multierror. Personally, I don't think it's worth the extra dependency.

Also, the call sites would be cleaner if this was variadic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants