Fix tslint

This commit is contained in:
morrigan
2019-11-21 14:43:12 +01:00
parent b2d058291c
commit f5888f6405
7 changed files with 32 additions and 16 deletions

View File

@ -53,6 +53,7 @@ export class Handshake {
return ns;
}
// stage 1
async exchange(isInitiator: boolean, session: NoiseSession) : Promise<void> {
if (isInitiator) {
const receivedMessageBuffer = (await this.connection.readLP()).slice();
@ -68,6 +69,7 @@ export class Handshake {
}
}
// stage 2
async finish(isInitiator: boolean, session: NoiseSession) : Promise<void> {
if (isInitiator) {
const messageBuffer = await this.xx.sendMessage(session, Buffer.alloc(0));