Skip to content

Commit

Permalink
nolint:gocyclo for Config.Validate
Browse files Browse the repository at this point in the history
  • Loading branch information
remicalixte committed Dec 1, 2023
1 parent 90eea1a commit 79f4121
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -524,6 +524,8 @@ func NewConfig() *Config {

// Validate checks a Config instance. It will return a
// ConfigurationError if the specified values don't make sense.
//
//nolint:gocyclo // This function's cyclomatic complexity has go beyond 100
func (c *Config) Validate() error {
// some configuration values should be warned on but not fail completely, do those first
if !c.Net.TLS.Enable && c.Net.TLS.Config != nil {
Expand Down

0 comments on commit 79f4121

Please sign in to comment.