File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -223,21 +223,18 @@ package body LSP.Message_Loggers is
223223
224224 function Reduce_Rules return String is
225225 I : constant Reversible_Iterator := Value.Rules.Iterate;
226- L : constant Cursor := Last (I);
227226 C : Cursor := First (I);
228227 R : VSS.Strings.Virtual_String := VSS.Strings.Empty_Virtual_String;
229228
230229 begin
231230 if Has_Element (C) then
232- while C /= L loop
233- Append (R, Value.Rules.Element (C));
231+ Append (R, Value.Rules.Element (C));
232+ C := Next (I, C);
233+ while Has_Element (C) loop
234234 Append (R, " , " );
235+ Append (R, Value.Rules.Element (C));
235236 C := Next (I, C);
236237 end loop ;
237-
238- if Has_Element (C) then
239- Append (R, Value.Rules.Element (C));
240- end if ;
241238 end if ;
242239
243240 return To_UTF_8_String (R);
@@ -249,7 +246,6 @@ package body LSP.Message_Loggers is
249246 & " ; Rules : ["
250247 & Reduce_Rules
251248 & " ]" ;
252- -- & Value.Rules.Length'Image;
253249 end Image ;
254250
255251 -- ---------
You can’t perform that action at this time.
0 commit comments