return key instead of keys[name]

This commit is contained in:
aeromechanic000 2025-05-06 17:23:35 +08:00
parent 4a19f72e75
commit bdd42b219d
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}, Year = {2023},
url={https://github.com/kolbytn/mindcraft} url={https://github.com/kolbytn/mindcraft}
} }
``` ```

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) {