From c5524bdf065a2854dfd8bc9d22239e2d8132ccfa Mon Sep 17 00:00:00 2001 From: ghorsington Date: Mon, 5 Oct 2020 22:41:18 +0300 Subject: [PATCH] Fix typo --- ScriptLoader/MonoCompiler.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ScriptLoader/MonoCompiler.cs b/ScriptLoader/MonoCompiler.cs index f430714..3ce0df0 100644 --- a/ScriptLoader/MonoCompiler.cs +++ b/ScriptLoader/MonoCompiler.cs @@ -120,11 +120,10 @@ namespace ScriptLoader // In some cases there could be multiple versions of the same assembly loaded // In that case we decide to simply load only the latest one as it's easiest to handle var dedupedAssemblies = AppDomain.CurrentDomain.GetAssemblies() - .Select(a => new { ass = a, name = ParseName(a.FullName) }) + .Select(a => new {ass = a, name = ParseName(a.FullName)}) .Where(a => a.name != null) .GroupBy(a => a.name.Name) - .Select(g => g.OrderByDescending(a => a.name.Version)) - .First(); + .Select(g => g.OrderByDescending(a => a.name.Version).First()); foreach (var ass in dedupedAssemblies) { if (StdLib.Contains(ass.name.Name) || compiledAssemblies.Contains(ass.name.Name))