Migrate from tslint to eslint (will tighten rules in further commits)

This commit is contained in:
Casper Warden
2021-09-23 17:14:23 +01:00
parent 2c4833baf7
commit bc6ee025cf
121 changed files with 3185 additions and 2863 deletions

View File

@@ -183,6 +183,7 @@ export class Circuit
{
let subscription: null | Subscription = null;
let timeout: Timer | null = null;
const receivedChunks: { [key: number]: Buffer } = {};
const progress = setInterval(() =>
{
console.log( ' ... Got ' + Object.keys(receivedChunks).length + ' packets');
@@ -218,7 +219,6 @@ export class Circuit
this.sendMessage(xferRequest, PacketFlags.Reliable);
let finished = false;
let finishID = 0;
const receivedChunks: { [key: number]: Buffer } = {};
let firstPacket = true;
let dataSize = 0;
subscription = this.subscribeToMessages([
@@ -509,13 +509,7 @@ export class Circuit
{
this.client.send(dataToSend, 0, dataToSend.length, this.port, this.ipAddress, (_err, _bytes) =>
{
/*let resend = '';
if (packet.packetFlags & PacketFlags.Resent)
{
resend = ' (resent)';
}
console.log('--> ' + packet.message.name + resend);
*/
})
}
else