Skip to content

Commit

Permalink
Assign the value returned by the MaybeAdd method
Browse files Browse the repository at this point in the history
  • Loading branch information
SeeminglyScience committed Dec 11, 2024
1 parent 294adb4 commit 36740ab
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6947,7 +6947,7 @@ internal static DynamicMetaObject InvokeDotNetMethod(
// - Log method invocation to AMSI Notifications (can throw PSSecurityException)
// - Invoke method
string targetName = methodInfo.ReflectedType?.FullName ?? string.Empty;
MaybeAddMemberInvocationLogging(expr, targetName, name, args);
expr = MaybeAddMemberInvocationLogging(expr, targetName, name, args);

// If we're calling SteppablePipeline.{Begin|Process|End}, we don't want
// to wrap exceptions - this is very much a special case to help error
Expand Down

0 comments on commit 36740ab

Please sign in to comment.