mirror of
https://github.com/actions/setup-dotnet.git
synced 2025-08-18 06:35:09 +00:00
Fix typo
This commit is contained in:
parent
1a2e6296c5
commit
981df77b36
2
dist/index.js
vendored
2
dist/index.js
vendored
@ -447,7 +447,7 @@ function run() {
|
||||
}
|
||||
if (versions.length) {
|
||||
const quality = core.getInput('dotnet-quality');
|
||||
if (!qualityOptions.includes(quality)) {
|
||||
if (quality && !qualityOptions.includes(quality)) {
|
||||
throw new Error(`${quality} is not a supported value for 'dotnet-quality' option. Supported values are: daily, signed, validated, preview, ga.`);
|
||||
}
|
||||
let dotnetInstaller;
|
||||
|
@ -50,7 +50,7 @@ export async function run() {
|
||||
if (versions.length) {
|
||||
const quality = core.getInput('dotnet-quality') as QualityOptions;
|
||||
|
||||
if (!qualityOptions.includes(quality)) {
|
||||
if (quality && !qualityOptions.includes(quality)) {
|
||||
throw new Error(
|
||||
`${quality} is not a supported value for 'dotnet-quality' option. Supported values are: daily, signed, validated, preview, ga.`
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user