Skip to content

Commit

Permalink
fall through
Browse files Browse the repository at this point in the history
  • Loading branch information
boks1971 committed Apr 4, 2024
1 parent ce7c722 commit 52ccc72
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ func (c *PacketConnConfig) validate() error {
}

if c.RelayAddressGenerator != nil {
return c.RelayAddressGenerator.Validate()
if err := c.RelayAddressGenerator.Validate(); err != nil {
return err
}

Check warning on line 64 in server_config.go

View check run for this annotation

Codecov / codecov/patch

server_config.go#L61-L64

Added lines #L61 - L64 were not covered by tests
}

return nil

Check warning on line 67 in server_config.go

View check run for this annotation

Codecov / codecov/patch

server_config.go#L67

Added line #L67 was not covered by tests
Expand Down

0 comments on commit 52ccc72

Please sign in to comment.