Skip to content
This repository has been archived by the owner on May 18, 2020. It is now read-only.

Commit

Permalink
Fix CI build
Browse files Browse the repository at this point in the history
  • Loading branch information
bkircher committed May 29, 2017
1 parent ab8e713 commit 91c99da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/sds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ export class Message {
* Returned in the response to this message. Set it to -1 initially.
*/
public static getLogMessages(lastSeen: number): Message {
let msg = new Message();
const msg = new Message();
msg.add([0, 0, 0, 0, 0, 0, 0, 0, Operation.SrvGui]);
msg.addInt32(ParameterName.Opcode, SrvGuiOperation.GetMessages);
msg.addInt32(ParameterName.Something, lastSeen);
Expand Down Expand Up @@ -893,7 +893,7 @@ export class SDSConnection {
const newLastSeen = response.getInt32(ParameterName.Last);
const isUtf8Encoded = response.getBoolean(ParameterName.Conversion);
assert.ok(isUtf8Encoded);
let lines = content.length === 0 ? [] : content.trim().split(/\r?\n/g);
const lines = content.length === 0 ? [] : content.trim().split(/\r?\n/g);
messages = { lines, lastSeen: newLastSeen };
} catch (err) {
reject(err.toString());
Expand Down
2 changes: 1 addition & 1 deletion test/sds.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ suite('SDS protocol tests', () => {

connection.send(Message.getLogMessages(lastSeen)).then(() => {
assert.equal(1, socket.out.length);
let packet = socket.out[0];
const packet = socket.out[0];
assert.equal(27, packet.length);
const bytes = [
0x00, 0x00, 0x00, 0x1b, 0x00, 0x00, 0x00, 0x00,
Expand Down

0 comments on commit 91c99da

Please sign in to comment.