Skip to content

Commit 062dee4

Browse files
author
WebFreak001
committed
apply dfmt
1 parent c5a4220 commit 062dee4

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

source/served/filereader.d

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class FileReader : Thread
2626
index = data.countUntil([cast(ubyte) '\r', cast(ubyte) '\n']);
2727
if (index != -1)
2828
{
29-
ret = cast(string)data[0 .. index].dup;
29+
ret = cast(string) data[0 .. index].dup;
3030
data = data[index + 2 .. $];
3131
break;
3232
}
@@ -70,4 +70,4 @@ private:
7070
File file;
7171
Mutex mutex;
7272
bool running;
73-
}
73+
}

source/served/info.d

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module source.served.info;
22

3-
static immutable Version = [0, 0, 0];
3+
static immutable Version = [0, 0, 0];

source/served/jsonrpc.d

+2-1
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,8 @@ private:
196196
inHeader = false;
197197
else if (line.startsWith("Content-Length:"))
198198
contentLength = line["Content-Length:".length .. $].strip.to!size_t;
199-
} while (inHeader);
199+
}
200+
while (inHeader);
200201
assert(contentLength > 0);
201202
auto content = cast(string) reader.yieldData(contentLength);
202203
assert(content.length == contentLength);

source/served/linters/dscanner.d

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ void lint(Document document)
3030
auto s = issue["description"].str;
3131
if (s.startsWith("Line is longer than ") && s.endsWith(" characters"))
3232
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));
3435
else
3536
d.range = TextRange(Position(cast(uint) issue["line"].integer - 1,
3637
cast(uint) issue["column"].integer - 1));
@@ -52,4 +53,3 @@ void lint(Document document)
5253
diagnostics[DiagnosticSlot] ~= PublishDiagnosticsParams(document.uri, result);
5354
updateDiagnostics(document.uri);
5455
}
55-

0 commit comments

Comments
 (0)