mirror of
https://github.com/grpc/grpc-node.git
synced 2025-12-08 18:23:54 +00:00
grpc-js: simplify ServerReadableStream's deserialize()
This commit removes null and undefined checks from deserialize().
This commit is contained in:
parent
e0a30907f9
commit
4857c63d01
@ -115,11 +115,7 @@ export class ServerReadableStreamImpl<RequestType, ResponseType> extends
|
||||
this.call.resume();
|
||||
}
|
||||
|
||||
deserialize(input: Buffer): RequestType|null {
|
||||
if (input === null || input === undefined) {
|
||||
return null;
|
||||
}
|
||||
|
||||
deserialize(input: Buffer): RequestType {
|
||||
return this._deserialize(input);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user