refactor Unnecessary 'await'

This commit is contained in:
Jean-Baptiste Pionnier
2018-09-30 22:14:35 +02:00
parent 31c2b87a6a
commit ac295e68f6
24 changed files with 39 additions and 53 deletions

View File

@@ -64,8 +64,7 @@ export class ServerNats extends Server implements CustomTransportStrategy {
}
public getMessageHandler(channel: string, client: Client) {
return async (buffer, replyTo: string) =>
await this.handleMessage(channel, buffer, client, replyTo);
return async (buffer, replyTo: string) => this.handleMessage(channel, buffer, client, replyTo);
}
public async handleMessage(