From 7b3d9543968864f3dcdd26009d3751d2f209c580 Mon Sep 17 00:00:00 2001 From: Diego Colombo Date: Tue, 13 Jun 2023 17:54:47 +0100 Subject: [PATCH] improve if conditions --- src/Microsoft.DotNet.Interactive/KernelExtensions.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Microsoft.DotNet.Interactive/KernelExtensions.cs b/src/Microsoft.DotNet.Interactive/KernelExtensions.cs index 2132ecce7b..0a0bc264dc 100644 --- a/src/Microsoft.DotNet.Interactive/KernelExtensions.cs +++ b/src/Microsoft.DotNet.Interactive/KernelExtensions.cs @@ -188,7 +188,6 @@ private static async Task HandleSetMagicCommand( } else { - valueProduced = events.SingleOrDefault(e => e.Name == sourceValueName && e.Command.TargetKernelName == sourceKernelName); }