Merge pull request #538 from cjihrig/return-await

grpc-js-core: remove use of return await
This commit is contained in:
Michael Lumish 2018-09-14 10:03:58 -07:00 committed by GitHub
commit 1b11238d38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View File

@ -185,7 +185,7 @@ export class CompressionFilter extends BaseFilter implements Filter {
* compressed, and the output message is deframed and uncompressed. So
* this is another reason that this filter should be at the bottom of the
* filter stack. */
return await this.receiveCompression.readMessage(await message);
return this.receiveCompression.readMessage(await message);
}
}

View File

@ -19,23 +19,23 @@ export interface Filter {
export abstract class BaseFilter {
async sendMetadata(metadata: Promise<Metadata>): Promise<Metadata> {
return await metadata;
return metadata;
}
async receiveMetadata(metadata: Promise<Metadata>): Promise<Metadata> {
return await metadata;
return metadata;
}
async sendMessage(message: Promise<WriteObject>): Promise<WriteObject> {
return await message;
return message;
}
async receiveMessage(message: Promise<Buffer>): Promise<Buffer> {
return await message;
return message;
}
async receiveTrailers(status: Promise<StatusObject>): Promise<StatusObject> {
return await status;
return status;
}
}