Skip to content

Commit

Permalink
don't isolate if no streams are specified
Browse files Browse the repository at this point in the history
  • Loading branch information
tonerdo committed Oct 9, 2017
1 parent 603594e commit d96b462
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Pose/PoseContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ public static class PoseContext

public static void Isolate(Action entryPoint, params Shim[] shims)
{
if (shims == null || shims.Length == 0)
{
entryPoint.Invoke();
return;
}

Shims = shims;
Type delegateType = typeof(Action<>).MakeGenericType(entryPoint.Target.GetType());
MethodRewriter rewriter = MethodRewriter.CreateRewriter(entryPoint.Method);
Expand Down

0 comments on commit d96b462

Please sign in to comment.