Use eslint
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user