Skip to content

Commit 4880075

Browse files
committed
code formatting
1 parent 0ad1eca commit 4880075

File tree

4 files changed

+15
-21
lines changed

4 files changed

+15
-21
lines changed

src/buffer/bufferv1.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ class SenderBufferV1 extends SenderBufferBase {
1212
super(options);
1313
}
1414

15-
/**
16-
* Write a float column with its value into the buffer using v1 serialization (text format).
17-
*
18-
* @param {string} name - Column name.
19-
* @param {number} value - Column value, accepts only number values.
20-
* @return {Sender} Returns with a reference to this sender.
21-
*/
15+
/**
16+
* Write a float column with its value into the buffer using v1 serialization (text format).
17+
*
18+
* @param {string} name - Column name.
19+
* @param {number} value - Column value, accepts only number values.
20+
* @return {Sender} Returns with a reference to this sender.
21+
*/
2222
floatColumn(name: string, value: number): SenderBuffer {
2323
this.writeColumn(
2424
name,

src/buffer/bufferv2.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ class SenderBufferV2 extends SenderBufferBase {
1515
super(options);
1616
}
1717

18-
/**
19-
* Write a float column with its value into the buffer using v2 serialization (binary format).
20-
*
21-
* @param {string} name - Column name.
22-
* @param {number} value - Column value, accepts only number values.
23-
* @return {Sender} Returns with a reference to this sender.
24-
*/
18+
/**
19+
* Write a float column with its value into the buffer using v2 serialization (binary format).
20+
*
21+
* @param {string} name - Column name.
22+
* @param {number} value - Column value, accepts only number values.
23+
* @return {Sender} Returns with a reference to this sender.
24+
*/
2525
floatColumn(name: string, value: number): SenderBuffer {
2626
this.writeColumn(
2727
name,

src/buffer/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ function createBuffer(options: SenderOptions): SenderBuffer {
3838
* Buffer used by the Sender.
3939
*/
4040
interface SenderBuffer {
41-
4241
/**
4342
* Resets the buffer, data added to the buffer will be lost. <br>
4443
* In other words it clears the buffer and sets the writing position to the beginning of the buffer.

test/util/mockhttp.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -102,13 +102,8 @@ class MockHttp {
102102

103103
async stop() {
104104
if (this.server) {
105-
return new Promise((resolve, reject) => {
106-
this.server.close((err) => {
107-
err ? reject(err) : resolve(true);
108-
});
109-
});
105+
this.server.close();
110106
}
111-
return true;
112107
}
113108
}
114109

0 commit comments

Comments
 (0)