From db7191df6596341563abc73065c43f7244aa478c Mon Sep 17 00:00:00 2001 From: Simon Cropp Date: Tue, 24 Dec 2024 05:32:12 +1100 Subject: [PATCH] remove redundant requestedName != null check (#4433) --- src/Adapter/MSTestAdapter.PlatformServices/AssemblyResolver.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Adapter/MSTestAdapter.PlatformServices/AssemblyResolver.cs b/src/Adapter/MSTestAdapter.PlatformServices/AssemblyResolver.cs index d28be18d55..2d1a1946f2 100644 --- a/src/Adapter/MSTestAdapter.PlatformServices/AssemblyResolver.cs +++ b/src/Adapter/MSTestAdapter.PlatformServices/AssemblyResolver.cs @@ -356,7 +356,7 @@ protected virtual return null; } - DebugEx.Assert(requestedName != null && !StringEx.IsNullOrEmpty(requestedName.Name), "MSTest.AssemblyResolver.OnResolve: requested is null or name is empty!"); + DebugEx.Assert(!StringEx.IsNullOrEmpty(requestedName.Name), "MSTest.AssemblyResolver.OnResolve: requested name is empty!"); foreach (string dir in searchDirectorypaths) {