mirror of
https://github.com/kolbytn/mindcraft.git
synced 2025-06-08 10:15:55 +02:00
Merge pull request #535 from aeromechanic000/get_env_key
return key instead of keys[name]
This commit is contained in:
commit
8d016b80f9
2 changed files with 2 additions and 2 deletions
|
@ -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}
|
||||
}
|
||||
```
|
||||
```
|
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue