mirror of
https://github.com/actions/runner.git
synced 2025-12-10 12:36:23 +00:00
Fix optional parameter for unattended (#425)
This commit is contained in:
committed by
TingluoHuang
parent
6b3b42a840
commit
8d6acf2a7f
@@ -72,6 +72,10 @@ namespace GitHub.Runner.Listener.Configuration
|
||||
{
|
||||
return defaultValue;
|
||||
}
|
||||
else if (isOptional)
|
||||
{
|
||||
return string.Empty;
|
||||
}
|
||||
|
||||
// Otherwise throw.
|
||||
throw new Exception($"Invalid configuration provided for {argName}. Terminating unattended configuration.");
|
||||
|
||||
Reference in New Issue
Block a user