Skip to content

Commit

Permalink
Fix missing case in string argument value.
Browse files Browse the repository at this point in the history
  • Loading branch information
Donn Relacion committed Jul 3, 2022
1 parent e9c0b8d commit 36ff958
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ public StringArgumentValue(IConfigurationSection section, string providedValue)
{
var argumentValue = Environment.ExpandEnvironmentVariables(providedValue);

if (toType == typeof(string))
{
return providedValue;
}

var toTypeInfo = toType.GetTypeInfo();
if (toTypeInfo.IsGenericType && toType.GetGenericTypeDefinition() == typeof(Nullable<>))
{
Expand Down

0 comments on commit 36ff958

Please sign in to comment.