Removing unused variables
This commit is contained in:
parent
b3d155de63
commit
a69d447940
|
|
@ -156,7 +156,7 @@ public static class JsonActivityConstructorContextHelper
|
|||
if (!activityRoot.TryGetProperty(propertyName, out var propertyElement) || propertyElement.ValueKind == JsonValueKind.Null || propertyElement.ValueKind == JsonValueKind.Undefined)
|
||||
continue;
|
||||
|
||||
if(propertyElement.ValueKind == JsonValueKind.Object && !propertyElement.TryGetProperty("typeName", out var typeNameElement))
|
||||
if(propertyElement.ValueKind == JsonValueKind.Object && !propertyElement.TryGetProperty("typeName", out var _))
|
||||
{
|
||||
var exception = new InvalidActivityDescriptorInputException(
|
||||
$"Activity descriptor '{activityDescriptor.Name}' has invalid input property '{propertyName}'; missing required property 'typeName'"
|
||||
|
|
|
|||
|
|
@ -39,8 +39,7 @@ public class ActivityJsonConverter(
|
|||
}
|
||||
|
||||
var clonedOptions = GetClonedOptions(options);
|
||||
var logger = serviceProvider.GetRequiredService<ILogger<ActivityJsonConverter>>();
|
||||
|
||||
|
||||
// If the activity type is not found, create a NotFoundActivity instead.
|
||||
if (activityDescriptor == null)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue