Skip to content

Commit

Permalink
modifying transformer logic due to change in node name!
Browse files Browse the repository at this point in the history
  • Loading branch information
harleenkohli committed Mar 6, 2019
1 parent 85a9a37 commit 36fd1c7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Sarif/Writers/PrereleaseCompatibilityTransformer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -204,14 +204,14 @@ private static void ConvertAllStackFrameAddressesToAddressObjects(JObject run)

private static void ConvertInvocationStackFrameAddressesToAddressObjects(JObject item)
{
if (item["toolNotifications"] is JArray toolNotifications)
if (item["toolExecutionNotifications"] is JArray toolExecutionNotifications)
{
ConvertNotificationsStackFrameAddressesToAddressObjects(toolNotifications);
ConvertNotificationsStackFrameAddressesToAddressObjects(toolExecutionNotifications);
}

if (item["configurationNotifications"] is JArray configurationNotifications)
if (item["toolConfigurationNotifications"] is JArray toolConfigurationNotifications)
{
ConvertNotificationsStackFrameAddressesToAddressObjects(configurationNotifications);
ConvertNotificationsStackFrameAddressesToAddressObjects(toolConfigurationNotifications);
}
}

Expand Down

0 comments on commit 36fd1c7

Please sign in to comment.