Skip to content

Commit b1375a9

Browse files
committed
Fix nullable warning in AssemblyLoadContext30Extensions.cs
1 parent d7d32f8 commit b1375a9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/tests/Loader/AssemblyLoadContext30Extensions/AssemblyLoadContext30Extensions.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
3+
34
using System;
45
using System.Reflection;
56
using System.Reflection.Emit;
@@ -218,7 +219,7 @@ public static void GetLoadContextForDynamicAssembly(bool isCollectible)
218219
assemblyBuilder = AssemblyBuilder.DefineDynamicAssembly(assemblyName, AssemblyBuilderAccess.RunAndCollect);
219220
}
220221

221-
AssemblyLoadContext? context = AssemblyLoadContext.GetLoadContext(assemblyBuilder);
222+
AssemblyLoadContext context = AssemblyLoadContext.GetLoadContext(assemblyBuilder);
222223

223224
Assert(context != null);
224225
Assert(alc == context);

0 commit comments

Comments
 (0)