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

@ -172,4 +172,4 @@ Some of the node modules that we depend on have bugs in them. To add a patch, ch
Year = {2023},
url={https://github.com/kolbytn/mindcraft}
}
```
```

View file

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