From 01326975134dfd36266faaa177f20a8982263772 Mon Sep 17 00:00:00 2001 From: Paul Pacheco Date: Tue, 29 Sep 2020 12:15:26 -0500 Subject: [PATCH] Simplify obj initialization --- Assets/Mirror/Tests/Editor/Weaver/WeaverAssembler.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Assets/Mirror/Tests/Editor/Weaver/WeaverAssembler.cs b/Assets/Mirror/Tests/Editor/Weaver/WeaverAssembler.cs index 254e28aa7..e54d6ffdb 100644 --- a/Assets/Mirror/Tests/Editor/Weaver/WeaverAssembler.cs +++ b/Assets/Mirror/Tests/Editor/Weaver/WeaverAssembler.cs @@ -155,8 +155,10 @@ public static void Clear() public static void Build() { - AssemblyBuilder assemblyBuilder = new AssemblyBuilder(Path.Combine(OutputDirectory, OutputFile), SourceFiles.ToArray()); - assemblyBuilder.additionalReferences = ReferenceAssemblies.ToArray(); + AssemblyBuilder assemblyBuilder = new AssemblyBuilder(Path.Combine(OutputDirectory, OutputFile), SourceFiles.ToArray()) + { + additionalReferences = ReferenceAssemblies.ToArray() + }; if (AllowUnsafe) { assemblyBuilder.compilerOptions.AllowUnsafeCode = true;