Skip to content

Commit

Permalink
Set errors
Browse files Browse the repository at this point in the history
  • Loading branch information
edaniels committed Feb 8, 2024
1 parent 7bc4c3a commit 278c137
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -248,18 +248,18 @@ func (c *Conn) Close() error {

var errs error
if err := c.multicastPktConnV4.Close(); err != nil {
multierr.Combine(errs, err)
errs = multierr.Combine(errs, err)
}

Check warning on line 252 in conn.go

View check run for this annotation

Codecov / codecov/patch

conn.go#L251-L252

Added lines #L251 - L252 were not covered by tests

if c.unicastPktConnV4 != nil {
if err := c.unicastPktConnV4.Close(); err != nil {
multierr.Combine(errs, err)
errs = multierr.Combine(errs, err)
}

Check warning on line 257 in conn.go

View check run for this annotation

Codecov / codecov/patch

conn.go#L256-L257

Added lines #L256 - L257 were not covered by tests
}

if c.unicastPktConnV6 != nil {
if err := c.unicastPktConnV6.Close(); err != nil {
multierr.Combine(errs, err)
errs = multierr.Combine(errs, err)
}

Check warning on line 263 in conn.go

View check run for this annotation

Codecov / codecov/patch

conn.go#L262-L263

Added lines #L262 - L263 were not covered by tests
}
if errs != nil {
Expand Down

0 comments on commit 278c137

Please sign in to comment.