Compare commits

...

1 Commits

Author SHA1 Message Date
Lokesh Gopu
a80bdb570a Fix optional parameter for unattended 2020-04-14 12:08:07 -04:00

View File

@@ -72,6 +72,10 @@ namespace GitHub.Runner.Listener.Configuration
{ {
return defaultValue; return defaultValue;
} }
else if (isOptional)
{
return string.Empty;
}
// Otherwise throw. // Otherwise throw.
throw new Exception($"Invalid configuration provided for {argName}. Terminating unattended configuration."); throw new Exception($"Invalid configuration provided for {argName}. Terminating unattended configuration.");