Weaver: syntax

This commit is contained in:
vis2k 2021-08-22 20:42:11 +08:00
parent 16579ea9e8
commit 852ef64034

View File

@ -60,17 +60,8 @@ public static void WeaveExistingAssemblies()
#endif
}
static Assembly FindMirrorRuntime()
{
foreach (Assembly assembly in CompilationPipeline.GetAssemblies())
{
if (assembly.name == MirrorRuntimeAssemblyName)
{
return assembly;
}
}
return null;
}
static Assembly FindMirrorRuntime() =>
CompilationPipeline.GetAssemblies().First(assembly => assembly.name == MirrorRuntimeAssemblyName);
static bool CompilerMessagesContainError(CompilerMessage[] messages)
{