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
223
223
224
224
function Reduce_Rules return String is
225
225
I : constant Reversible_Iterator := Value.Rules.Iterate;
226
- L : constant Cursor := Last (I);
227
226
C : Cursor := First (I);
228
227
R : VSS.Strings.Virtual_String := VSS.Strings.Empty_Virtual_String;
229
228
230
229
begin
231
230
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
234
234
Append (R, " , " );
235
+ Append (R, Value.Rules.Element (C));
235
236
C := Next (I, C);
236
237
end loop ;
237
-
238
- if Has_Element (C) then
239
- Append (R, Value.Rules.Element (C));
240
- end if ;
241
238
end if ;
242
239
243
240
return To_UTF_8_String (R);
@@ -249,7 +246,6 @@ package body LSP.Message_Loggers is
249
246
& " ; Rules : ["
250
247
& Reduce_Rules
251
248
& " ]" ;
252
- -- & Value.Rules.Length'Image;
253
249
end Image ;
254
250
255
251
-- ---------
You can’t perform that action at this time.
0 commit comments