Skip to content

Commit f5e48d1

Browse files
committed
Fix lint
1 parent b68a3c9 commit f5e48d1

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/debugAdapter2/dapClient.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ export class DAPClient extends EventEmitter {
2828
super();
2929
}
3030

31+
public send(req: any): void {
32+
const json = JSON.stringify(req);
33+
this.outputStream.write(`Content-Length: ${Buffer.byteLength(json, 'utf8')}\r\n\r\n${json}`, 'utf8');
34+
}
35+
3136
// Connect this client to a server, which is represented by read and write
3237
// streams. Before this method is called, send() won't work and not messages
3338
// from the server will be delivered.
@@ -39,11 +44,6 @@ export class DAPClient extends EventEmitter {
3944
});
4045
}
4146

42-
public send(req: any): void {
43-
const json = JSON.stringify(req);
44-
this.outputStream.write(`Content-Length: ${Buffer.byteLength(json, 'utf8')}\r\n\r\n${json}`, 'utf8');
45-
}
46-
4747
// Implements parsing of the DAP protocol. We cannot use ProtocolClient
4848
// from the vscode-debugadapter package, because it's not exported and
4949
// is not meant for external usage.

src/debugAdapter2/goDlvDebug.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ class DelveClient extends DAPClient {
618618

619619
// Connect this client to the server. The server is expected to be listening
620620
// on host:port.
621-
private connectSocketToServer(port: number, host:string) {
621+
private connectSocketToServer(port: number, host: string) {
622622
// Add a slight delay to ensure that Delve started up the server.
623623
setTimeout(() => {
624624
const socket = net.createConnection(

0 commit comments

Comments
 (0)