From c2194f8ab0e1088192279422c2f92f621e6fe46b Mon Sep 17 00:00:00 2001 From: Filip Navara Date: Fri, 31 Jan 2025 23:40:48 +0100 Subject: [PATCH] WasmAppBuilder: Remove double computation of a value (#112047) --- src/tasks/WasmAppBuilder/PInvokeCollector.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/tasks/WasmAppBuilder/PInvokeCollector.cs b/src/tasks/WasmAppBuilder/PInvokeCollector.cs index 574bcd7889e765..c8dcf571fad147 100644 --- a/src/tasks/WasmAppBuilder/PInvokeCollector.cs +++ b/src/tasks/WasmAppBuilder/PInvokeCollector.cs @@ -204,8 +204,6 @@ private bool HasAssemblyDisableRuntimeMarshallingAttribute(Assembly assembly) .Any(d => d.AttributeType.Name == "DisableRuntimeMarshallingAttribute"); } - value = assembly.GetCustomAttributesData().Any(d => d.AttributeType.Name == "DisableRuntimeMarshallingAttribute"); - return value; } }