Skip to content

Commit ca93c7b

Browse files
committed
remove duplication of action/conditions.
this fixes the update alert rule issue.
1 parent bcbbd1f commit ca93c7b

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/Monitor/Monitor/TransitionalClasses/ActivityLogAlertResource.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,7 @@ public ActivityLogAlertResource(Monitor.Models.ActivityLogAlertResource activity
5454
enabled: activityLogAlertResource?.Enabled,
5555
description: activityLogAlertResource?.Description)
5656
{
57-
if (activityLogAlertResource != null)
58-
{
59-
this.Actions = activityLogAlertResource.Actions != null ? new ActivityLogAlertActionList(activityLogAlertResource.Actions) : null;
60-
this.Condition = activityLogAlertResource.Condition != null ? new ActivityLogAlertAllOfCondition(activityLogAlertResource.Condition) : null;
61-
}
57+
6258
}
6359
}
6460
}

0 commit comments

Comments
 (0)