From 58be9a47cfba27ca1fa199765b50dba7fea18445 Mon Sep 17 00:00:00 2001 From: Pablo Baeyens Date: Thu, 6 Aug 2020 10:04:32 +0200 Subject: [PATCH] Address linter --- exporter/datadogexporter/config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exporter/datadogexporter/config.go b/exporter/datadogexporter/config.go index 3db9f030b2fa..574668cc4910 100644 --- a/exporter/datadogexporter/config.go +++ b/exporter/datadogexporter/config.go @@ -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. @@ -48,7 +48,7 @@ func (c *Config) Sanitize() error { // Check API key is set if c.APIKey == "" { - return unsetAPIKey + return errUnsetAPIKey } // Sanitize API key