Fix optional parameter for unattended (#425)

This commit is contained in:
Lokesh Gopu
2020-04-14 12:14:26 -04:00
committed by TingluoHuang
parent 6b3b42a840
commit 8d6acf2a7f

View File

@@ -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.");