mirror of
https://github.com/oven-sh/setup-bun.git
synced 2025-07-17 20:18:24 +02:00
refactor: drop unnecessary check
This commit is contained in:
parent
4c86bb4191
commit
5f6f054bec
1 changed files with 0 additions and 5 deletions
|
@ -11,11 +11,6 @@ const registries = JSON.parse(getInput("registries") || "[]");
|
|||
const registryUrl = getInput("registry-url");
|
||||
const scope = getInput("scope");
|
||||
|
||||
if (registries.length > 0 && (registryUrl || scope)) {
|
||||
setFailed("Cannot specify both 'registries' and 'registry-url' or 'scope'.");
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
if (registryUrl) {
|
||||
registries.push({
|
||||
url: registryUrl,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue