Skip to content

Commit

Permalink
Address linter
Browse files Browse the repository at this point in the history
  • Loading branch information
mx-psi committed Aug 31, 2020
1 parent 695430c commit 58be9a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions exporter/datadogexporter/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
)

var (
unsetAPIKey = errors.New("Datadog API key is unset")
errUnsetAPIKey = errors.New("the Datadog API key is unset")
)

// Config defines configuration for the Datadog exporter.
Expand All @@ -48,7 +48,7 @@ func (c *Config) Sanitize() error {

// Check API key is set
if c.APIKey == "" {
return unsetAPIKey
return errUnsetAPIKey
}

// Sanitize API key
Expand Down

0 comments on commit 58be9a4

Please sign in to comment.