summaryrefslogtreecommitdiffstats
path: root/internal/config
diff options
context:
space:
mode:
Diffstat (limited to 'internal/config')
-rw-r--r--internal/config/config.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/internal/config/config.go b/internal/config/config.go
index 44ca7e6..e1da2c2 100644
--- a/internal/config/config.go
+++ b/internal/config/config.go
@@ -24,7 +24,9 @@ func New() *Config {
}
func (c *Config) WithAPIKey(key string) *Config {
- c.APIKey = key
+ if key != "" {
+ c.APIKey = key
+ }
return c
}