Skip to content

Commit e95f730

Browse files
committed
address feedback
1 parent b6d7fd6 commit e95f730

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

  • src/System.Management.Automation/engine/runtime/Operations

src/System.Management.Automation/engine/runtime/Operations/MiscOps.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3740,15 +3740,17 @@ internal static void LogMemberInvocation(string targetName, string name, object[
37403740
// must be propagated.
37413741
throw;
37423742
}
3743-
#if DEBUG
3743+
#pragma warning disable CS0168 // variable declared but never used
37443744
catch (Exception ex)
3745+
#pragma warning restore CS0168
37453746
{
3747+
#if DEBUG
37463748
if (DumpLogAMSIContent.Value)
37473749
{
37483750
Console.WriteLine($"!!! Amsi notification report exception: {ex} !!!");
37493751
}
3750-
}
37513752
#endif
3753+
}
37523754
}
37533755
}
37543756
}

0 commit comments

Comments
 (0)