From a9919896ad42814880730561ae1ede701388d872 Mon Sep 17 00:00:00 2001 From: BlockLucas Date: Thu, 12 Oct 2023 14:18:35 -0300 Subject: [PATCH] trivial refactor --- .../als/server/modules/diagnostic/DiagnosticConverters.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/als-server/shared/src/main/scala/org/mulesoft/als/server/modules/diagnostic/DiagnosticConverters.scala b/als-server/shared/src/main/scala/org/mulesoft/als/server/modules/diagnostic/DiagnosticConverters.scala index c063d2db7..af799417d 100644 --- a/als-server/shared/src/main/scala/org/mulesoft/als/server/modules/diagnostic/DiagnosticConverters.scala +++ b/als-server/shared/src/main/scala/org/mulesoft/als/server/modules/diagnostic/DiagnosticConverters.scala @@ -71,9 +71,9 @@ object DiagnosticConverters { // avoid timeout by checking if we already added it, not using set as order is needed if (!branch.contains(newD)) { if (originFlag) - branch.prepend(newDiagnostic(uri, range, origin)) + branch.prepend(newD) else - branch.append(newDiagnostic(uri, range, origin)) + branch.append(newD) relatedFor(origin, references, informationBranches, branch, branchLimit, originFlag) } }