File tree 4 files changed +7
-6
lines changed
4 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ class FileReader : Thread
26
26
index = data.countUntil([cast (ubyte ) ' \r ' , cast (ubyte ) ' \n ' ]);
27
27
if (index != - 1 )
28
28
{
29
- ret = cast (string )data[0 .. index].dup ;
29
+ ret = cast (string ) data[0 .. index].dup ;
30
30
data = data[index + 2 .. $];
31
31
break ;
32
32
}
@@ -70,4 +70,4 @@ private:
70
70
File file;
71
71
Mutex mutex;
72
72
bool running;
73
- }
73
+ }
Original file line number Diff line number Diff line change 1
1
module source.served.info ;
2
2
3
- static immutable Version = [0 , 0 , 0 ];
3
+ static immutable Version = [0 , 0 , 0 ];
Original file line number Diff line number Diff line change @@ -196,7 +196,8 @@ private:
196
196
inHeader = false ;
197
197
else if (line.startsWith(" Content-Length:" ))
198
198
contentLength = line[" Content-Length:" .length .. $].strip.to! size_t ;
199
- } while (inHeader);
199
+ }
200
+ while (inHeader);
200
201
assert (contentLength > 0 );
201
202
auto content = cast (string ) reader.yieldData(contentLength);
202
203
assert (content.length == contentLength);
Original file line number Diff line number Diff line change @@ -30,7 +30,8 @@ void lint(Document document)
30
30
auto s = issue[" description" ].str;
31
31
if (s.startsWith(" Line is longer than " ) && s.endsWith(" characters" ))
32
32
d.range = TextRange(Position(cast (uint ) issue[" line" ].integer - 1 ,
33
- s[" Line is longer than " .length .. $ - " characters" .length].to! uint ), Position(cast (uint ) issue[" line" ].integer - 1 , 1000 ));
33
+ s[" Line is longer than " .length .. $ - " characters" .length].to! uint ),
34
+ Position(cast (uint ) issue[" line" ].integer - 1 , 1000 ));
34
35
else
35
36
d.range = TextRange(Position(cast (uint ) issue[" line" ].integer - 1 ,
36
37
cast (uint ) issue[" column" ].integer - 1 ));
@@ -52,4 +53,3 @@ void lint(Document document)
52
53
diagnostics[DiagnosticSlot] ~= PublishDiagnosticsParams(document.uri, result);
53
54
updateDiagnostics(document.uri);
54
55
}
55
-
You can’t perform that action at this time.
0 commit comments