Skip to content

Commit

Permalink
Merge pull request #2 from LethalCompanyModding/fix-linq-statement
Browse files Browse the repository at this point in the history
fix: return exactly one matched assembly
  • Loading branch information
RobynLlama authored Aug 24, 2024
2 parents a264ce6 + 9b51efe commit 0c53677
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/UnityDebuggerAssistant/Utils/ExceptionHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ static void DumpPatch(StringBuilder sb, Assembly assembly, int Indent)
static Assembly GetAssemblyByName(string name)
{
return AppDomain.CurrentDomain.GetAssemblies().
SingleOrDefault(assembly => assembly.GetName().Name.Equals(name, StringComparison.InvariantCultureIgnoreCase));
FirstOrDefault(assembly => assembly.GetName().Name.Equals(name, StringComparison.InvariantCultureIgnoreCase));
}

[MethodImpl(MethodImplOptions.NoInlining)]
Expand Down

0 comments on commit 0c53677

Please sign in to comment.