Skip to content

Commit 5f7388c

Browse files
Fix code sample.
1 parent ed9d629 commit 5f7388c

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

docs/core-abstractions.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -790,10 +790,7 @@ partial class DecoratorVisitor : TypeShapeVisitor
790790
public override object? VisitFunction<TFunction, TArgumentState, TResult>(
791791
IFunctionTypeShape<TFunction, TArgumentState, TResult> functionShape, object? state)
792792
{
793-
// Capture the original delegate instance from 'state'.
794-
var original = (TFunction)state!;
795793
var invoker = functionShape.GetFunctionInvoker();
796-
797794
if (!functionShape.IsAsync)
798795
{
799796
return new Func<TFunction, TFunction>(inner => functionShape.FromDelegate((ref TArgumentState arg) =>

0 commit comments

Comments
 (0)