Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
weboko committed Apr 18, 2024
1 parent fa5cc10 commit 64e5932
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
12 changes: 4 additions & 8 deletions src/codec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ export class NoiseHandshakeEncoder implements IEncoder {
public pubsubTopic: string,
private hsStepResult: HandshakeStepResult,
public ephemeral: boolean = true
) {
}
) {}

async toWire(message: IMessage): Promise<Uint8Array | undefined> {
const protoMessage = await this.toProtoObj(message);
Expand Down Expand Up @@ -80,8 +79,7 @@ export class NoiseHandshakeDecoder implements IDecoder<NoiseHandshakeMessage> {
* @param contentTopic content topic on which the encoded WakuMessages were sent
*/

constructor(public contentTopic: string, public pubsubTopic: string) {
}
constructor(public contentTopic: string, public pubsubTopic: string) {}

fromWireToProtoObj(bytes: Uint8Array): Promise<IProtoMessage | undefined> {
const protoMessage = WakuMessage.decode(bytes);
Expand Down Expand Up @@ -149,8 +147,7 @@ export class NoiseSecureTransferEncoder implements IEncoder {
private hsResult: HandshakeResult,
public ephemeral: boolean = true,
public metaSetter?: IMetaSetter
) {
}
) {}

async toWire(message: IMessage): Promise<Uint8Array | undefined> {
const protoMessage = await this.toProtoObj(message);
Expand Down Expand Up @@ -201,8 +198,7 @@ export class NoiseSecureTransferDecoder implements IDecoder<NoiseSecureMessage>
* @param hsResult handshake result obtained after the handshake is successful
*/

constructor(public contentTopic: string, public pubsubTopic: string, private hsResult: HandshakeResult) {
}
constructor(public contentTopic: string, public pubsubTopic: string, private hsResult: HandshakeResult) {}

fromWireToProtoObj(bytes: Uint8Array): Promise<IProtoMessage | undefined> {
const protoMessage = WakuMessage.decode(bytes);
Expand Down
14 changes: 12 additions & 2 deletions src/pairing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,12 @@ export class WakuPairing {

this.eventEmitter.emit("pairingComplete");

return WakuPairing.getSecureCodec(this.contentTopic, this.pubsubTopic, this.handshakeResult, this.encoderParameters);
return WakuPairing.getSecureCodec(
this.contentTopic,
this.pubsubTopic,
this.handshakeResult,
this.encoderParameters
);
}

private async responderHandshake(): Promise<[NoiseSecureTransferEncoder, NoiseSecureTransferDecoder]> {
Expand Down Expand Up @@ -357,7 +362,12 @@ export class WakuPairing {

this.eventEmitter.emit("pairingComplete");

return WakuPairing.getSecureCodec(this.contentTopic, this.pubsubTopic, this.handshakeResult, this.encoderParameters);
return WakuPairing.getSecureCodec(
this.contentTopic,
this.pubsubTopic,
this.handshakeResult,
this.encoderParameters
);
}

/**
Expand Down

0 comments on commit 64e5932

Please sign in to comment.