From 486a369f05125a3b86d663ea94684466e0658099 Mon Sep 17 00:00:00 2001 From: s Date: Fri, 7 Nov 2025 18:13:02 -0500 Subject: fix: prevent empty string from overriding environment variable api key --- internal/config/config.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'internal') 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 } -- cgit v1.2.3