From 5d604a8e312f6dc48139747871fa3a1ae8ab3f3d Mon Sep 17 00:00:00 2001 From: Vladimir Chirikov Date: Mon, 30 Jan 2023 19:49:11 +0300 Subject: [PATCH] Remove additional null-check from ActivityCreationOptions (#81351) --- .../src/System/Diagnostics/ActivityCreationOptions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libraries/System.Diagnostics.DiagnosticSource/src/System/Diagnostics/ActivityCreationOptions.cs b/src/libraries/System.Diagnostics.DiagnosticSource/src/System/Diagnostics/ActivityCreationOptions.cs index 5737392..5c0542d 100644 --- a/src/libraries/System.Diagnostics.DiagnosticSource/src/System/Diagnostics/ActivityCreationOptions.cs +++ b/src/libraries/System.Diagnostics.DiagnosticSource/src/System/Diagnostics/ActivityCreationOptions.cs @@ -53,7 +53,7 @@ namespace System.Diagnostics _traceState = ac.TraceState; } - else if (parent is string p && p != null) + else if (parent is string p) { if (IdFormat != ActivityIdFormat.Hierarchical) { -- 2.7.4