Merge pull request #535 from aeromechanic000/get_env_key

return key instead of keys[name]
This commit is contained in:
Max Robinson 2025-05-12 12:08:56 -05:00 committed by GitHub
commit 8d016b80f9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -16,7 +16,7 @@ export function getKey(name) {
if (!key) { if (!key) {
throw new Error(`API key "${name}" not found in keys.json or environment variables!`); throw new Error(`API key "${name}" not found in keys.json or environment variables!`);
} }
return keys[name]; return key;
} }
export function hasKey(name) { export function hasKey(name) {