Use eslint

This commit is contained in:
2026-03-09 22:16:01 +01:00
parent 344c89a8d0
commit 91299af3eb
6 changed files with 1156 additions and 20 deletions

View File

@@ -169,7 +169,7 @@ export class KeyManager extends BaseKeyManager {
try {
const decrypted = group.decryptText(encrypted);
return { decrypted, group: group };
} catch (e) {
} catch {
// Ignore and try next secret
}
}
@@ -186,7 +186,7 @@ export class KeyManager extends BaseKeyManager {
try {
const decrypted = group.decryptData(encrypted);
return { decrypted, group };
} catch (e) {
} catch {
// Ignore and try next secret
}
}

View File

@@ -194,7 +194,7 @@ export class Packet implements IPacket {
}
const reader = new BufferReader(this.payload);
let payload: Partial<AdvertPayload> = {
const payload: Partial<AdvertPayload> = {
type: PayloadType.ADVERT,
publicKey: reader.readBytes(32),
timestamp: reader.readTimestamp(),
@@ -202,7 +202,7 @@ export class Packet implements IPacket {
}
const flags = reader.readByte();
let appdata: AdvertAppData = {
const appdata: AdvertAppData = {
nodeType: flags & 0x0f,
hasLocation: (flags & 0x10) !== 0,
hasFeature1: (flags & 0x20) !== 0,